Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created May 9, 2013 07:34
Show Gist options
  • Save mikebaldry/5546094 to your computer and use it in GitHub Desktop.
Save mikebaldry/5546094 to your computer and use it in GitHub Desktop.
def screenshot!
path = Tempfile.new(["ss", ".png"]).path
save_screenshot(path, full: true)
sleep 2
system("open #{path}")
sleep 1
end
def inspector!
page.driver.debug
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment