Scroll page by pixel code example
Example: Scroll page by pixel
@Test
public void ByPixel() {
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("window.scrollBy(0,1000)");
}
@Test
public void ByPixel() {
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("window.scrollBy(0,1000)");
}