Last active
November 6, 2015 10:26
-
-
Save hectorperez/814d2b0444261deca720 to your computer and use it in GitHub Desktop.
Capybara screenshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add to Gemfile: | |
gem 'capybara-screenshot' | |
Add to spec or rails helper: | |
require 'capybara-screenshot/rspec' | |
screenshot_and_save_page # similar to save_and_open_page but image instead of html page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment