How to slide slider on horizontal progress bar URL: http://jqueryui.com/slider/ I tried to scroll the slider but it did not work for me. My code using Java is below:
Try sendkeys!
public class TestClass
{
public static void main(String[] args) {
File file = new File("D:\\Driver\\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
WebDriver driver = new InternetExplorerDriver();
driver.get("http://jqueryui.com/slider/");
WebElement slider = driver.findElement(By.xpath("//div[@id='slider']/a"));
for (int i = 1; i <= "how many times you want" ; i++) {
slider.sendKeys(Keys.ARROW_RIGHT);
}
}
}