Skip to content

Instantly share code, notes, and snippets.

@tysonmote
Created May 11, 2011 20:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tysonmote/967333 to your computer and use it in GitHub Desktop.
Save tysonmote/967333 to your computer and use it in GitHub Desktop.
ruby-1.8.7-p302 > browser = Selenium::WebDriver.for( :chrome ) => #<Selenium::WebDriver::Driver:0x1091d18c0 browser=:chrome>
ruby-1.8.7-p302 > browser.mouse_over( :link_text => "Reporting" )
NoMethodError: undefined method `mouse_over' for #<Selenium::WebDriver::Driver:0x1091d18c0 browser=:chrome>
from (irb):40
from :0
ruby-1.8.7-p302 > mouse = Selenium::WebDriver::Mouse.new( browser )
=> #<Selenium::WebDriver::Mouse:0x1091cfcc8 @bridge=#<Selenium::WebDriver::Driver:0x1091d18c0 browser=:chrome>>
ruby-1.8.7-p302 > mouse.move_to( browser.find_element( :link_text => "Reporting" ) )
NoMethodError: undefined method `mouseMoveTo' for #<Selenium::WebDriver::Driver:0x1091d18c0 browser=:chrome>
from /Users/tyson/C2/builder/gems/gems/selenium-webdriver-0.2.0/lib/selenium/webdriver/common/mouse.rb:50:in `move_to'
from (irb):44
from :0
ruby-1.8.7-p302 > browser.mouse.move_to( browser.find_element( :link_text => "Reporting" ) )
NoMethodError: undefined method `mouse' for #<Selenium::WebDriver::Driver:0x1091d18c0 browser=:chrome>
from (irb):42
from :0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment