title: Selenium: horizontal scroll using Actions class
body: <p>I have tried various to access this custom scroll bar on my web page through Selenium actions as well as Javascript Executor. The scroll bar scrolls through only 500 pixels when in fact I want it to scroll throughout the complete width. Any help is appreciated. Below is my current code snippet:  </p>
  
  <pre><code> WebElement slider = element("slider_div");
   WebElement scrollbar = element("scrollbar");
   int w = slider.getSize().getWidth();
   Actions move = new Actions(driver);
   move.dragAndDropBy(e, offset, 0).build() .perform();
  </code></pre>
  
  <p>I have also tried with the below solution, but still it did not work out:</p>
  
  <pre><code>WebElement slider = element("slider_div");
  WebElement scrollbar = element("scrollbar");
  int w = slider.getSize().getWidth();
  clickByJavascript(slider);
  Actions action = new Actions(driver); 
  action.sendKeys(Keys.RIGHT).build().perform();`
  </code></pre>
  
  <p>Thanks in Advance!!!</p>