title: How to slide{move} slider in Selenium WebDriver
body: <p>How to slide slider on horizontal progress bar 
  URL: <a href="http://jqueryui.com/slider/" rel="nofollow">http://jqueryui.com/slider/</a>
  I tried to scroll the slider but it did not work for me. My code using Java is below:</p>
  
  <pre><code> 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"));
      Actions move = new Actions(driver);
      Action action = (Action) move.dragAndDropBy(slider, 30, 0).build();
      ((Actions) action).perform();
  
  }
  
  
  }
  </code></pre>
  
  <p>Console</p>
  
  <pre><code>   Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to    find element with css selector == html body div#slider.ui-slider a.ui-slider-handle   (WARNING: The server did not provide any stacktrace information)
    Command duration or timeout: 286 milliseconds
    For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
   Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:09:54'
   System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:   '1.7.0_13'
   Driver info: driver.version: RemoteWebDriver
   Session ID: 79edc751-a9a3-4ecb-a171-d2b43c088a66
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  at java.lang.reflect.Constructor.newInstance(Unknown Source)
  at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)
  at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
  at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:498)
  at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:268)
  at org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(RemoteWebDriver.java:345)
  at org.openqa.selenium.By$ByCssSelector.findElement(By.java:406)
  at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:260)
  at testpakage.testclass.main(testclass.java:30)
  </code></pre>