scrolling to element by id 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)', ’’);