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 -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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