Friday, March 21, 2014

Scroll Bar navigation in Selenium WebDriver

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);
           }

No comments:

Post a Comment