Skip to content

smacgaha/chromedriver-screenshot

Repository files navigation

chromedriver-screenshot

Gem Version Build Status

Full page screenshots for Chrome in Selenium WebDriver

Usage

Simply require the gem. Whenever you take a screenshot, chromedriver-screenshot will snip the page into separate sections, take screenshots of each individual section, and then stitch them together to create a screenshot of the page in its entirety.

Configs

You can switch to the old screenshot behavior by changing the take_full_screenshots config:

ChromedriverScreenshot.take_full_screenshots = false

Known issues:

  1. Screenshots on Retina displays quadruple in size. As a result, screenshots are cropped incorrectly.

TODO:

  1. Better inheritance/monkeypatching
  2. Find a solution to screenshots on Retina
  3. Refactor singleton platforms class
  4. Refactor ChunkyPNG method
  5. Add e2e tests
  6. Finish unit tests

About

Full page screenshots for Chrome in Selenium WebDriver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published