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:
I think the slide is use css style format to scroll so we change element's style
JavascriptExecutor js = (JavascriptExecutor) driver; WebElement a = driver.findElement(By.xpath("//div[@id='slider-1']/a")); js.executeScript("arguments[0].setAttribute('style', 'left: 30%;')",a);