Skip to content

Instantly share code, notes, and snippets.

@greyblake
Created November 21, 2013 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greyblake/7587889 to your computer and use it in GitHub Desktop.
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
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