Currently, and often I have elements on a page that become visible when hovered.
action builder sounded promising, but seems to require elements found beforehand, not during an operation.
This won't work...
page.driver.browser.action.
move_to(find(:xpath, './/span[text()="Test"]')).
move_to(find(:xpath, ".//span[text()="Test"]]/../a[@title="Hidden Thing to click"]')).
click(find(:xpath, ".//span[text()="Test"]]/../a[@title="Hidden Thing to click"]')).
perform
and pre-assignments will fail for those elements that are hidden
elem1 = find(:xpath, './/span[text()="Test"]') #ok
elem2 = find(:xpath, ".//span[text()="Test"]]/../a[@title="Hidden Thing to click"]') #ElementNotFound
page.driver.browser.action.
move_to(elem1).
move_to(elem2).
click(elem2).
perform
Maybe the real question is a sure fire way to find the onhover javascript, it seems well hidden on some pages.
Thoughts?