Multiple Ways to Scroll a Page Using Selenium WebDriver

There are a number of ways to scroll a page using Selenium WebDriver in Java. Some of them are discussed below. If you want to scroll the page vertically to perform some action, you can do it using the following JavaScript.         ((JavascriptExecutor) driver).executeScript(“window.scrollTo(0, document.body.scrollHeight)”);             Where ‘JavascriptExecutor’ is an interface, which helps executing JavaScript Read more…

SHARE THIS