selenium-shutterbug: Utility library to create customized screenshots using Selenium WebDriver and Java AWT
selenium-shutterbug
Utility library to create customized screenshots using Selenium WebDriver and Java AWT
Synopsis
Selenium Shutterbug is a utility library written in Java for making screenshots using Selenium WebDriver and further customizing, comparing and processing them with the help of Java AWT.
Code Example
Screenhot of the page with scrolling (for Chrome to make screenshot of the whole page but not viewport only):
Shutterbug.shootPage(driver, ScrollStrategy.BOTH_DIRECTIONS).save("C:\\testing\\screenshots\\");