<div dir="ltr"><div class="gmail_extra">On Fri, Sep 27, 2013 at 6:37 PM, Amir E. Aharoni <span dir="ltr"><<a href="mailto:amir.aharoni@mail.huji.ac.il" target="_blank">amir.aharoni@mail.huji.ac.il</a>></span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">There is a .hover method in WebDriver (or is it PageObject? I'm never sure)</blockquote>
<div><br></div><div>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.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
but it seems that it only works if the element is in the viewport.</blockquote></div><div class="gmail_extra"><br></div>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.)<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Željko</div><div class="gmail_extra">--</div><div class="gmail_extra">0: <a href="http://rdoc.info/gems/watir-webdriver/Watir/Element#hover-instance_method">http://rdoc.info/gems/watir-webdriver/Watir/Element#hover-instance_method</a></div>
<div class="gmail_extra">1: <a href="http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver/Element.html#location_once_scrolled_into_view-instance_method">http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver/Element.html#location_once_scrolled_into_view-instance_method</a></div>
<div class="gmail_extra">2: <a href="https://github.com/p0deje/watir-scroll">https://github.com/p0deje/watir-scroll</a></div></div>