Created
June 22, 2011 14:13
-
-
Save jarmo/1040166 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError: undefined method `autoit' for Watir:Module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAutomation::Window.new(:title => /Internet Explorer/).adapter # => defaults to :win_ffi | |
RAutomation::Window.new(:title => /Internet Explorer/, :adapter => :autoit).adapter # => uses :autoit for this object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Watir.autoit.WinWait("Blank Page - Windows Internet Explorer") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAUTOMATION_ADAPTER"] = "autoit" | |
require "watir" # now Watir uses RAutomation with AutoIt adapter. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser = Watir::Browser.new | |
browser.rautomation.WinWait("Blank Page - Windows Internet Explorer") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment