It is practically impossible to always calculate exactly how to
automatically scroll a website such that the desired element is not hidden
by static objects overlaid on top.
Use watir-scroll to help you - https://github.com/p0deje/watir-scroll
Titus
On Tuesday, April 19, 2016 at 4:08:52 AM UT
Yeah, that's annoying. Think I filed a Webdriver bug a one point (I wasn't the
only one) but not sure if they ever did anything with it.
If you don't have to use Chrome, It might be worth trying Firefox. Driver
install is not required for that and it's a little less fussy, although think I
saw
I am trying to automate tests in Ruby using the latest Watir-Webdriver
0.9.1, Selenium-Webdriver 2.53.0 and Chrome extension 2.21. However the
website that I am testing has static headers at the top or sometimes static
footers at the bottom. Hence since Watir auto-scrolls an element into view