while on a Capybara / Cucumber test execution How to save and open the page as snapshot in a browser for inspection

While debugging a cucumber test (within an specific step for an specific scenario) with a binding.pry I wanted to see the html as it is with inputs and outputs of data at the moment (and because I usually run tests with Capybara headless option), I realized the existance of:


it Saves a snapshot of the page and open it in a browser for inspection


Note: ^ be sure to have the gem 'launchy' within test env so that it works