Skip to content

Instantly share code, notes, and snippets.

Last active February 15, 2021 05:37
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