In this blog, we are going to learn, how we can capture the
screenshot of particular WebElement using Third-party utility “aShot”.
aShot is third party web driver screenshot utility used
for:
ร Takes
a screenshot of a WebElement on different platforms (i.e. desktop browsers, iOS
Simulator Mobile Safari, Android Emulator Browser)
ร Capturing
Full Page Screenshots.
ร Decorates
screenshots
Please Visit aShot official page for more details.
Below Steps, we need to follow to use aShot in our
Project.
ร Download
aShot Jar or Maven dependency using this link.
The dependency that I am using for implementation.
ร Please
refer below code snippet where I have captured the screenshot of google logo from its web-page.
In the above code takeScreenshot captures the screenshot of given web element, Screenshot is the result of Screen capture.
In the above code takeScreenshot captures the screenshot of given web element, Screenshot is the result of Screen capture.
After executing the
above code result will looks something like:
How To Capture Screenshot Of Particular Web-Element Using Selenium Ashot - Qa Automation >>>>> Download Now
Reply>>>>> Download Full
How To Capture Screenshot Of Particular Web-Element Using Selenium Ashot - Qa Automation >>>>> Download LINK
>>>>> Download Now
How To Capture Screenshot Of Particular Web-Element Using Selenium Ashot - Qa Automation >>>>> Download Full
>>>>> Download LINK 3Z