title: Allure AShot() screenshots in Selenium
body: <p>Im experimenting with Allure aShot() class to take screenshots of specific WebElements on a website I'm working on, and below is the code I used in selenium to make it happen. 
  Please visit this link, which shows aShot() project documentation:</p>
  
  <p><a href="https://github.com/yandex-qatools/ashot" rel="nofollow">https://github.com/yandex-qatools/ashot</a></p>
  
  <p>So My QUESTION is that, where are these AShot() screenshots of the WebElement actually being saved? I used testNG to execute below method and successfully able to generate allure reports but I can't see these screenshots in those reports or anywhere in my framework. Please check below code, it is very difficult to pinpoint the location of these images.</p>
  
  <p>So again, my basic question is: How do we specify selenium to store these AShot() screenshots of the WebElement into a particular file that we want?</p>
  
  <p>I've tried to cast Screenshot class mentioned below to BufferedImage or TakesScreenshot class and use ImageIO.write or FileUtils.copyFile methods to copy these images into a file and store these images there, but I get an error saying, for example, "java.lang.ClassCastException: ru.yandex.qatools.ashot.Screenshot cannot be cast to org.openqa.selenium.TakesScreenshot" and I've tried other methods as well, unsuccessfully.</p>
  
  <p>Please help me resolve this issue, how do we know/specify where these AShot() screenshots are being saved?</p>
  
  <pre><code>public WebDriver driver;
  
  @Test
  public void getAShotImage() {
    driver.get("http://....../");
    WebElement element = driver.FindElement(By.xpath(".............."));
    AShot shot = new AShot();
    shot.takeScreenShot(driver, element);
  
    OR
  
    shot.coordsProvider(new WebDriverCoordsProvider()).takeScreenshot(driver, element);
  
  }
  </code></pre>