Most of the cases Selenium automatically calls the javascript "scrollIntoView" function on any element that you try to interact with. If you know an element exists at the bottom of the page then doing anything with that element (including getting an attribute or hovering over it, etc) will cause the page to scroll.
If the above doesn't work, please do either of the followings:
Scroll to a WebElement:
Or
(Or)
Scroll up the web page:
Scroll down the web page:
Scroll to end/bottom of page:
(Or)
(Or)
If the above doesn't work, please do either of the followings:
Scroll to a WebElement:
Scroll up the web page:
No comments:
Post a Comment