Last active
February 15, 2021 05:37
-
-
Save ultimate-qa2/87f75047e187862fedc25b93ba3757ab to your computer and use it in GitHub Desktop.
Scrolling to the bottom of the page using JS executor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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