public

Automate JQuery Slider Using Selenium WebDriver

  • Download Gist
JquerySliderAutomationUsingSelenium
1 2 3 4 5 6 7 8 9 10 11
WebDriver driver = new InternetExplorerDriver();
driver.get("http://jqueryui.com/demos/slider/");
//Identify WebElement
WebElement slider = driver.findElement(By.xpath("//div[@id='slider']/a"));
 
//Using Action Class
Actions move = new Actions(driver);
Action action = move.dragAndDropBy(slider, 30, 0).build();
action.perform();
 
driver.quit();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.