title: Ashot is not taking screenshot of correct element
body: <p>I am trying to take screenshot of the table given in one webpage. and the same element xpath I am providing in the code however Ashot code is capturing screenshot of some other location. </p>
  
  <p>I have also tried other code of taking screenshot, </p>
  
  <pre><code>Screenshot screenshot = new AShot().takeScreenshot(driver,driver.findElement(By.xpath(webElementXpath)));
  </code></pre>
  
  <p>but it was giving me error which I was able to fix by reading this link: <a href="https://github.com/pazone/ashot/issues/93" rel="nofollow noreferrer">https://github.com/pazone/ashot/issues/93</a> and then I used below code:</p>
  
  <pre><code>WebElement myWebElement = driver.findElement(By.xpath("//center/table/tbody/*"));
          Screenshot fpScreenshot = new AShot()
                  .coordsProvider(new WebDriverCoordsProvider()).takeScreenshot(driver,myWebElement);
  
           ImageIO.write(fpScreenshot.getImage(),"PNG",new File("/Users/sanatkumar/eclipse-workspace/com.ScreenshotUtility/Screenshots/error.png"));
  </code></pre>
  
  <p>Please help as this code is giving me the screenshot of some random part of the webpage. I tried to capture other element as well but again I did not get the correct screenshot:</p>
  
  <p>Please note my table is not fully visible on the webpage, manually I have to scroll down to view full table. do I need to write other code to get full screenshot of the table??</p>
  
  <p>also my website is angular based which I am trying to automate using selenium java. the reason why I am doing this is because in protractor I dint find any API like Ashot. if anybody knows about it please let me know.</p>