Last active
October 7, 2016 18:15
-
-
Save justinleveck/51863cf452551720ee0dd42c7213fb90 to your computer and use it in GitHub Desktop.
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
# Capybara Screenshots - Full Page | |
options = {} | |
# options[:width] = current_window.size[0] | |
# options[:height] = current_window.size[1] | |
path = "tmp/screenshot.png" | |
page.driver.resize_window(2548, 1238) | |
options[:width] = 2548 | |
options[:height] = 1238 | |
page.driver.save_screenshot(path, options) | |
Launchy.open path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment