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\\");
7 questions
544
votes
51 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)
1
vote
1 answer

How to take full page screenshot of a scrollable webpage with sticky element in Safari using java?

I tried taking screenshot with shutterbug but the screenshot is not proper. PageSnapshot image = Shutterbug.shootPage(driver, Capture.FULL, 500, true); image.withName("shuteerbug").save(home + File.separator + "Desktop");
Gokul
  • 11
  • 3
0
votes
0 answers

How do I take a scrolling screenshot of a whole telegram group using python?

I am using Selenium Chromedriver for example, but not sure wether to use this to take a scrolling screenshot of a webpage, or another library? Anyone got any recommendations? I want to use it on a Telegram channel for example. A screendump of a…
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,559
  • 5
  • 22
  • 48
0
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
Kaushik
  • 89
  • 1
  • 12
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);