How to handle vertical & Horizontal Autoscroll using selenium webdriver.

Handling Auto scroll with selenium Webdriver is very easy just copy & paste the below script and it's done...

JavascriptExecutor jse = (JavascriptExecutor)driver;
jse.executeScript("window.scrollBy(0,700)");

Note: Where "0" handle Horizontal scroll &  "700" handle Vertical scroll.

Comments

Popular posts from this blog

Book ticket online through IRCTC using Selenium Webdriver.

How to create a New Gmail Account using Selenium Web Driver.

SQL Injection.