Questions tagged [selenium-shutterbug]

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\\");
6 questions
515
votes
45 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)
0
votes
0 answers

Shutterbug NoClassDefFound

I am executing some selenium tests and wanted to add Shutterbug to my project for screenshots. I Added a mvn dependency: com.assertthat selenium-shutterbug
Andrei Suvorkov
  • 5,191
  • 4
  • 17
  • 37
0
votes
0 answers

Header part is not taken properly in screenshot. I have used shutterbug for screenshot

After using the shutterbug, I have taken the screen of the entire page, but after taking the screenshot in the website where the header was sticky, the header part is not coming/visible properly in screenshot.
0
votes
1 answer

Selenium Shutter Bug Issue - UnableToCompareImagesException

I am getting this error, please help me to resolve this issue. com.assertthat.selenium_shutterbug.utils.image.UnableToCompareImagesException: Images dimensions mismatch: image1 - 2880x1340; image2 - 2880x1362 at…
0
votes
1 answer

Can the screeenshots generated by selenium-shutterbug be saved with extension as jpg instead of png?

Selenium-shutterbug (https://github.com/assertthat/selenium-shutterbug) saves screenshots as png, is there any way to save them as jpg? For example: Shutterbug.shootPage(driver,ScrollStrategy.WHOLE_PAGE_CHROME).withName(screenshotName).save(path);
-1
votes
2 answers

Difference between aShot and Shutterbug in selenium

I a trying to learn capturing screenshots in selenium. Came to know about aShot() and Shutterbug classes which is a third party Api for webdriver. What are the key Differences and Which has Advantages Thanks in Advance
Kowcik
  • 49
  • 7