Skip to content

Instantly share code, notes, and snippets.

@jarmo
Created June 22, 2011 14:13
Show Gist options
  • Save jarmo/1040166 to your computer and use it in GitHub Desktop.
Save jarmo/1040166 to your computer and use it in GitHub Desktop.
NoMethodError: undefined method `autoit' for Watir:Module
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
Watir.autoit.WinWait("Blank Page - Windows Internet Explorer")
ENV["RAUTOMATION_ADAPTER"] = "autoit"
require "watir" # now Watir uses RAutomation with AutoIt adapter.
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