Question : how to scroll if element not visible
Answered by : thankful-tuatara-0jrotzbxcqqs
We can use javaScriptExecutor to scroll down
WebDriver driver = new ChromeDriver();
JavascriptExecutor jse =(JavascriptExecutor)driver
.jse.executeScript('window.scrollBy(0,250)', ’’);
Source : | Last Update : Fri, 11 Dec 20