Debugging feature specs with Capybara October 4, 2016 / Peter Karman / 0 Comments # pretty print html to terminal puts Nokogiri::HTML(page.body).to_xhtml(indent: 3)