Created
November 21, 2013 19:22
-
-
Save greyblake/7587889 to your computer and use it in GitHub Desktop.
My tiny useful method for Capybara webkit driver to see screenshot in one command when I debug
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
def show_page | |
filename = "/tmp/shot.png" | |
driver = page.driver | |
driver.save_screenshot(filename) | |
system "eog #{filename}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment