how to scroll to specific element in javascript code example
Example 1: javascript scroll to element
document.getElementById("divId").scrollIntoView();
Example 2: scroll down to element if not visible
WebDriver driver = new ChromeDriver();
JavascriptExecutor jse =(JavascriptExecutor)driver
.jse.executeScript('window.scrollBy(0,250)', ’’);