protected static void pageScrollDown(final int i, final int j, final WebDriver driver) { final JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("window.scrollBy(" + i + "," + j + ")"); }
the below snipped code does not work when I d page Scroll Down in Chrome Driver, is this right ?