title: Scroll a specific DIV inside a webpage using Selenium WebDriver
body: <p>How can we scroll a specific DIV inside a webpage using Selenium WebDriver ? NOT scrolling the complete webpage, BUT scrolling a specific DIV inside the webpage.</p>
  
  <p>for exp:-
  <a href="https://groups.google.com/forum/#!forum/ibm.software.websphere.application-server" rel="nofollow">https://groups.google.com/forum/#!forum/ibm.software.websphere.application-server</a></p>
  
  <ul>
  <li>need to "scroll the contents down"</li>
  </ul>
  
  <p>tried:-</p>
  
  <pre><code>Actions act2 = new Actions(browser);
  WebElement draggablePartOfScrollbar=browser.findElement(By.className("G3J0AAD-b-F"));
  act2.moveToElement(draggablePartOfScrollbar).clickAndHold().moveByOffset(0, 250).release().build().perform();
  </code></pre>
  
  <p>This is working but this is not scrolling and it fails sometime by mistakenly clicking some content.</p>