Seems capybara has implemented the hover
function
check capybara/selenium/node.rb
|
|
But it’s only a selenium implementation. Not all the browsers implement hover
function,
Capybara has not apply the method.
check capybara/session.rb
|
|
You have two ways to use the hover function:
convert element to selenium element and call hover
element.native.hover
Add the snippet below to
hook.rb
file under the support directory.12345678910111213# Example:## find("span.assign").hover#module Capybaramodule Nodeclass Elementdef hover@session.driver.browser.action.move_to(self.native).performendendendend