This Script can use for Scroll bar navigation in a page
for (int second = 0;; second++) {
if(second >=30){
break;
}
((RemoteWebDriver) Driver.driver).executeScript("window.scrollBy(0,200)", "");
Thread.sleep(3000);
}
for (int second = 0;; second++) {
if(second >=30){
break;
}
((RemoteWebDriver) Driver.driver).executeScript("window.scrollBy(0,200)", "");
Thread.sleep(3000);
}