Weird solution for shutting down all chrome processes #1731
KonradOlech
started this conversation in
General
Replies: 1 comment
-
Is this a way to avoid memory leaks like the ones mentioned in #1821 ? This sounds like a great solution if so |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was working on fixing issue with uc leaving Chrome processes open after closing script.
By accident I discovered that if you write function which calls driver.close() and DON'T INVOKE IT ANYWHERE then uc will close all Chrome processes correctly.
This is my function:
def close_driver(driver): driver.close()
When I try to call it, it throws an urllib error, when I try to call close() on driver directly then it leaves processes.
Weird fix, but working for me. Hopefully it will work with your code too.
Beta Was this translation helpful? Give feedback.
All reactions