As discussed in Important notes about Screenshots in Selenium 2 and Selenium 3 we can take only visible area screenshot using TakesScreenshot interface.
To take the full page screenshot of a page AShot() scrolls down the page at particular time intervals “scrollTimeOut” till the bottom of the page and takes the screenshot of entire page.
Using shootingStrategy() method Ashot() takes the entire page screenshot. The syntax is:
Ashot() is a third party utility supported by Selenium WebDriver
to capture the screen shots. The below are the features supported by aShot() utility with repect to screenshots:
- Capturing the entire page
- Capture the Web Element
- Prettifying the screenshot
- Screenshot comparison
- Several elements comparison
To take the full page screenshot of a page AShot() scrolls down the page at particular time intervals “scrollTimeOut” till the bottom of the page and takes the screenshot of entire page.
Using shootingStrategy() method Ashot() takes the entire page screenshot. The syntax is: