Questions tagged [ashot]

aShot : aShot is a WebDriver Screenshot utility which takes a screenshot of the WebElement on different platforms (i.e. desktop browsers, iOS Simulator Mobile Safari, Android Emulator Browser), decorates screenshots and provides flexible screenshot comparison.

aShot

aShot is a WebDriver Screenshot utility which can :

  • Takes a screenshot of the WebElement on different platforms (i.e. desktop browsers, iOS Simulator Mobile Safari, Android Emulator Browser)
  • Decorates screenshots
  • Provides flexible screenshot comparison

WebElement view

aShot takes a screenshot in three simple steps:

  • Capture the entire page screenshot
  • Find element's size and position
  • Crop the original screenshot

Maven dependency

<dependency>
    <groupId>ru.yandex.qatools.ashot</groupId>
    <artifactId>ashot</artifactId>
    <version>1.5.2</version>
</dependency>

Source : aShot (yandex-qatools/ashot)

35 questions
544
votes
51 answers

How can I take a screenshot with Selenium WebDriver?

Is it possible to take a screenshot using Selenium WebDriver? (Note: Not Selenium Remote Control)
3
votes
2 answers

How to take full page screenshot using AShot library through Selenium and Java

I tried the below code for taking full page screenshot. But only the visible area is captured, public void Fullscreen (WebDriver driver) { try { final Screenshot screenshot = new…
Ismail
  • 79
  • 2
  • 13
2
votes
1 answer

Ashot screenshot does not correctly crop the element from screenshot

I am trying to open this url and take the screenshot of the Keep browsing button which looks like the below image using Ashot library. Here is my dependencies on pom.xml: