-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Chrome process still running in background after driver.quit() #1445
Comments
I have found a workaround solution.
This is the Batch file:
So I get the process ID from UC and kill this process with taskkill. The parameter /T also kills all child processes. I think something is going wrong with UC and driver.quit(). Would still love to see it fixed. |
chrome is a bitch with its background processing. |
ohh yes surely it is |
Unset the uc.Chrome(driver_executable_path=driver_executable_path, options=options, user_data_dir=user_data_dir, no_sandbox=False, user_multi_procs=True, use_subprocess=False) But some things to consider: |
I am having the same problems. Adding a driver service to the driver (as suggested as an apparently working solution for some cases for Java), didn't help me, either. So for now, I am having the script kill the remaining processes as a workaround. Not nice, but it seems to work robustly. |
"The argument --no-sandbox is used when launching the Chrome browser through Selenium WebDriver. This argument disables the use of the 'sandbox' in Chrome. The 'sandbox' is an additional security layer that isolates the browser from the rest of the system to prevent malicious programs or viruses from affecting your system through the browser. However, sometimes using this feature can cause issues when launching Chrome through Selenium, especially in environments without a GUI (for example, on a server without a graphical interface). Therefore, adding --no-sandbox to the browser launch arguments via WebDriver can be helpful in such cases. However, caution should be exercised when using this argument, as it may reduce the security level of your system." |
You need to call |
this only works if you are running a single test. when you are running multiple tests in sequence, the second scenario will fail with HTTPConnectionPool error:
|
It happens very often to me that the chrome processes are still running in background after I perform a driver.quit() to close chrome.
It is happening about 50% of the time and I can not find any pattern for it. I do also get no error message of any kind.
The chrome process is just still running endless and requires a permanent high cpu usage.
I have no idea what to do.
Selenium, UC and Chrome are all latest versions installed.
I tried downgrading everything. Still no luck.
I found someone having a similar issue here, but it did not help me.
Please help me, I can not use UC in this condition.
The text was updated successfully, but these errors were encountered: