-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[🐛 Bug]: Ensuring Drivers close #15634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Python handles this correctly. If you try to instantiate a browser and the session is not created, it will raise For example, the following code will raise an exception, stop execution, and no
|
|
Not the system, but our code is killing the child processes when the Python interpreter exits. There is a
Now that I think about it more, that makes sense. If you continuously create drivers, and handle the exception without exiting the program (like a test framework might do), the drivers wouldn't get cleaned up until the end. I'll see if I can add that. |
I think this is all that is needed for Python: #15636 |
This is completed for Python via #15636 |
Uh oh!
There was an error while loading. Please reload this page.
Description
Selenium closes the driver as part of the quit method, but it is possible for Selenium to start the driver, but error when creating the session, which prevents the driver process from being closed.
I see this for sure in Ruby, but I think this applies to other languages as well, so we should check.
Reproducible Code
Debugging Logs
The text was updated successfully, but these errors were encountered: