When you need to see the content of a page (i.e. not all the HTML but the relevant text body)
pp (html_content)
body
or response.body
page.driver.html.content
page.body
Nokogiri::HTML(response.body).content
The returned strings can be cleaned up by calling .gsub(/^\s*$/, '').squeeze("\n")
on them.\
Although this may be useful for debugging, when writing custom steps you may be better off using XPath.