check if div is showing in scroll code example
Example: how to scroll if element not visible
We can use javaScriptExecutor to scroll down
WebDriver driver = new ChromeDriver();
JavascriptExecutor jse =(JavascriptExecutor)driver
.jse.executeScript('window.scrollBy(0,250)', ’’);