title: How to scroll down of specific div to locate an element and make it clickable via selenium webdriver in java
body: <p><a href="https://i.stack.imgur.com/NqBLi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NqBLi.png" alt="enter image description here"></a>I need to click on a button 'NEW'. The element button is visible on DOM but it's not clickable because it's overlapped and i need to scroll down left side of the page to make it clickable. I was trying inject some javascript but it didn't help in my case:</p>
  
  <pre><code>JavascriptExecutor js = ((JavascriptExecutor) driver);
  js.executeScript("scroll(" + driver.findElement(By.xpath(//div[@class = 'save-new'])).getLocation().getX() + "," + driver.findElement(By.xpath(//div[@class = 'save-new'])).getLocation().getY() + ")");
  </code></pre>