<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 27, 2013 at 9:37 AM, 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>
<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"><div dir="rtl"><div dir="ltr">n hover. There is a .hover method in WebDriver (or is it PageObject? I'm never sure), but it seems that it only works if the element is in the viewport. What's the right way to make it work?</div>
</div></blockquote><div><br></div><div>A couple of suggestions: </div><div><br></div><div>I found that instead of doing 'element.hover' that doing 'element.fire_event('onmouseover') was more effective. I thought I had an example in a repo but I can't seem to find it. </div>
<div><br></div><div>Alternately, if you send some action like a click or a downarrow to the element, that should bring the element into view so .hover could work. (See the last 2 comments here: <a href="http://stackoverflow.com/questions/3401343/scroll-element-into-view-with-selenium">http://stackoverflow.com/questions/3401343/scroll-element-into-view-with-selenium</a>)<br>
</div><div><br></div></div></div></div>