Skip to content

Instantly share code, notes, and snippets.

@esteedqueen
Created August 12, 2017 23:04
Show Gist options
  • Save esteedqueen/3ec6e2aaf51c6ea4b20eaf9e299dc58f to your computer and use it in GitHub Desktop.
Save esteedqueen/3ec6e2aaf51c6ea4b20eaf9e299dc58f to your computer and use it in GitHub Desktop.
TIL - Logging the page content in capybara

This is useful for when debugging your tests.

Option 1:

puts page.body

Option 2:

save_and_open_page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment