Module: Vapir
- Includes:
- Exception
- Defined in:
- lib/vapir-ie.rb,
lib/vapir-ie.rb,
lib/vapir-ie/form.rb,
lib/vapir-ie/link.rb,
lib/vapir-ie/frame.rb,
lib/vapir-ie/image.rb,
lib/vapir-ie/table.rb,
lib/vapir-ie/autoit.rb,
lib/vapir-ie/config.rb,
lib/vapir-ie/logger.rb,
lib/vapir-ie/browser.rb,
lib/vapir-ie/element.rb,
lib/vapir-ie/process.rb,
lib/vapir-ie/version.rb,
lib/vapir-ie/close_all.rb,
lib/vapir-ie/container.rb,
lib/vapir-ie/ie-process.rb,
lib/vapir-ie/clear_tracks.rb,
lib/vapir-ie/modal_dialog.rb,
lib/vapir-ie/input_elements.rb,
lib/vapir-ie/page_container.rb,
lib/vapir-ie/screen_capture.rb,
lib/vapir-ie/non_control_elements.rb
Defined Under Namespace
Modules: Process, ScreenCapture, WatirConfigCompatibility Classes: DefaultLogger, IE, VapirLogger
Constant Summary collapse
- AutoItDLL =
File.join(File.(File.dirname(__FILE__)),'AutoItX3.dll')
Class Method Summary collapse
-
.autoit ⇒ Object
returns a WIN32OLE for an AutoIt control.
Class Method Details
.autoit ⇒ Object
returns a WIN32OLE for an AutoIt control. if AutoIt is not registered, this will attempt to registered the bundled AutoIt DLL and return a WIN32OLE for it when it is registered.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/vapir-ie/autoit.rb', line 5 def self.autoit @@autoit||= begin begin WIN32OLE.new('AutoItX3.Control') rescue WIN32OLERuntimeError system("regsvr32.exe /s \"#{AutoItDLL.gsub('/', '\\')}\"") WIN32OLE.new('AutoItX3.Control') end end end |