Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Scrolling to the top of the page using JS executor
public void scrollUp() {
((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