On Fri, Sep 27, 2013 at 6:37 PM, Amir E. Aharoni < [email protected]> wrote:
> There is a .hover method in WebDriver (or is it PageObject? I'm never sure) page-object gem just adds API on top of selenium-webdriver and watir-webdriver gems. Hover[1] method is part of watir-webdriver gem. I could not find it in selenium-webdriver. but it seems that it only works if the element is in the viewport. You can use selenium-webdriver's #location_once_scrolled_into_view method[1], but watir-scroll gem[2] also looks interesting. (Warning: I did not use watir-scroll gem, but it is created by one of watir-webdriver gem developers, so it is probably good.) Željko -- 0: http://rdoc.info/gems/watir-webdriver/Watir/Element#hover-instance_method 1: http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver/Element.html#location_once_scrolled_into_view-instance_method 2: https://github.com/p0deje/watir-scroll
_______________________________________________ QA mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/qa
