scroll to a specific dom element code example
Example: scroll down to element if not visible
WebDriver driver = new ChromeDriver();
JavascriptExecutor jse =(JavascriptExecutor)driver
.jse.executeScript('window.scrollBy(0,250)', ’’);
WebDriver driver = new ChromeDriver();
JavascriptExecutor jse =(JavascriptExecutor)driver
.jse.executeScript('window.scrollBy(0,250)', ’’);