문제

We're using Selenium's Python bindings at work. Occasionally I forget to put the call to WebDriver.quit() in a finally clause, or the tear down for a test. Something bad happens, an exception is thrown, and the session is abandoned and stuck as "in use" on the grid.

How can I quit those sessions and return them to being available for use without restarting the grid server?

도움이 되었습니까?

해결책

While quitting in an ensure/finally block would be the safest option, configuring the idle timeout for your browser session would be a good safety release. See the section on timeouts in the Grid 2 wiki page:

https://code.google.com/p/selenium/wiki/Grid2

다른 팁

You can restart the node instead of the server.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top