-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
Does anyone know why a Chrome process remains active even after closing the browser and exiting ChromeDriver? This lingering process continues to use CPU resources, leading to high CPU usage and potentially slowing down the system, especially after running multiple tests. This issue occurs in both headless and non-headless modes. How can I resolve this issue? Thanks.
Chromedriver version = 126.0.6478.62
Seleniumbase version = 4.27.5
Operating system = Windows 11 Enterprise
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
All reactions
-
Try to introduce a timeout between driver requests, I had the same problem for a while when running the process as a task within the scheduler, so far it is working fine. I added a minimum 5000ms delay to help ensure that no overlap occurs.
FYI: the randomness is just to mimic human behavior!
randomValue = (CInt(Math.Floor((15 - 1 + 1) * Rnd())) + 1) * 1000 + 5000
Threading.Thread.Sleep(randomValue)
driver.Navigate.GoToUrl(url)
Beta Was this translation helpful? Give feedback.