Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scrolling to the bottom of the page using JS executor
public void scrollDown() {
((JavascriptExecutor) driver)
.executeScript("window.scrollTo(0, document.body.scrollHeight)");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment