Question

When I do js: true test (rspec+capybara+selenium) it runs the browser and all steps are visible. I wish to be able to stop in some point and look around the page. Is there a way to do that? For non js: true tests save_and_open_page from gem launchy works well but here it's useless.

Was it helpful?

Solution

Nothing is better than putting a sleep or a debugger breakpoint where you want to stop, then you can look around the page.

Also note that your browser will be loaded by capybara without extensions, so you cannot use firebug or other tools (but perhaps the native developer tools of firefox remain available I'm not sure)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top