Controlling scroll rate in Selenium Java? -


is there way control rate scroll down in java?

public static void scrollpage(webdriver driver) {     javascriptexecutor executor = (javascriptexecutor) driver;     executor.executescript("window.scrollto(0, document.body.scrollheight);"); } 

this have scrolls bottom automatically.

you can divide scrollheight 100 , use loop scroll step step small delays between steps.


Comments

Popular posts from this blog

python - pip install -U PySide error -

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -