Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98773

How to scroll down in a particular section of webpage in selenium using javascript executor

$
0
0

I am aware that we can use the below to scroll down on the webpage.

(JavascriptExecutor) driver.executeScript("window.scrollBy(0,1000)");

But I have a particular section in the webpage, which has a scroll bar. I need to go to the last element in that section. Problem is the last element's locator will not be found until and unless I scroll down completely. How do we handle it?


Viewing all articles
Browse latest Browse all 98773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>