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)