Is there a way to control the rate you scroll down in Java?
public static void scrollPage(WebDriver driver) {
JavascriptExecutor executor = (JavascriptExecutor) driver;
executor.executeScript("window.scrollTo(0, document.body.scrollHeight);");
}
This is what I have currently but this scrolls to the bottom automatically.