Class: Win32::CaptureIE::Commands::PrtIE::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/win32/capture_ie/commands/prt_ie.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#perform(opt) ⇒ Object



50
51
52
53
54
55
56
57
58
# File 'lib/win32/capture_ie/commands/prt_ie.rb', line 50

def perform(opt)
  opt.fixup!
  opt.check_options
  Win32::CaptureIE.start do |ie|
    ie.navigate(opt.url, true)
    sleep(opt.wait) if opt.wait > 0
    ie.capture_page(opt.outfile)
  end
end