Created
April 10, 2013 21:22
-
-
Save NaN1488/5358556 to your computer and use it in GitHub Desktop.
this emulate hover action without using execute_script
This file contains 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
# Example: | |
# | |
# find("span.assign").hover | |
# | |
module Capybara | |
module Node | |
class Element | |
def hover | |
@session.driver.browser.action.move_to(self.native).perform | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment