Rails and Selenium: how to stop/pause execution of a test in the browser? Rails and Selenium: how to stop/pause execution of a test in the browser? selenium selenium

Rails and Selenium: how to stop/pause execution of a test in the browser?


Install pry, then put binding.pry in your test where you want it to pause. When you're done, press Ctrl+D or type exit in the REPL that gets opened to continue execution.


or just:

 visit '/' sleep(inspection_time=5) visit '/dreamland'


Use Debugger where you want to stop/pause the execution.

or

In Selenium IDE you can right click on the commands line and you can select Set/Clear Start point to stop/pause the execution.