Is there a way to hand off a selenium session to a browser locally. I'd like to run a script and somehow release the session or pause it so that I can resume testing from that point. Is this possible with selenium. I'm not sure if there is a term for this already.

1 Answer 1


If you run the tests on your local machine, just make sure the test-code does not call driver.quit(); or driver.close(); or driver.Dispose();. For example by commenting it out and running only one test. The browser should stay open at the end of the test.

The default browser idle timeout is 30 minutes, this means you should be able to keep working in that browser session for 30 minutes. This should be more than enough for most Selenium/WebDriver debugging things. I guess it is also enough for most exploratory testing sessions. You can extend this default timeout by starting the Selenium server manually with -timeout seconds, but I can't find the official documentation for this. This page has some info about the command-line arguments..

Just testing it on my localmachine, removed driver.quit() from my test cleanup and notwthe browser is already open for some minutes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.