Issue
I use driver.quit()
at the end of my code, and it closes the Chrome window as expected, but when checking Task Manager on Windows after script execution is complete, I find Chrome tasks that are eating up the CPU - and I'm certain that those tasks are from undetected-chromedriver
did anyone face this issue, and how do I make sure that undetected-chromedriver terminates properly and does not leave any running background tasks?
Solution
I had this issue before as I was using subprocess driver = uc.Chrome(use_subprocess=True)
. just remove that option and use driver = uc.Chrome()
and it should terminate properly.
Answered By - Adam
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.