[QA] Firefox doesn't scroll items into view in browser tests

S Page spage at wikimedia.org
Tue Sep 16 19:58:30 UTC 2014

Flow topics and posts have a dropdown "action menu". Tests that interact
with the bottom item in the action menu started failing on Firefox because
it is outside the browser window, so attempts to click it get

   "Element is not currently visible and so may not be interacted with"

(bug 70878 [1]).

Other Selenium users have this issue[2], but that StackOverflow has
comments like
"Selenium 2 tries to scroll to the element and then click on it" [3]

If I run the test in chromium 37 on my browser and shrink the window,
chromium scrolls the window to bring the element into view. But Firefox 32
doesn't seem to scroll at all. I'm running selenium-webdriver 2.43.0
locally.  Is this a known Firefox issue?  Must I put JS executeScript(
scrollIntoView() ) hacks into my support code?

Thanks as always.

[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=70878
[3] http://stackoverflow.com/a/3403683/451712 (I commented there as

=S Page  Features engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/qa/attachments/20140916/84fed77b/attachment.html>

More information about the QA mailing list