Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome 74: Deleting cookies takes very long time

I'm facing the issue that it takes approx. of 10 minutes to execute the driver.delete_all_cookies() after upgrading Chrome.

  • With Chrome 73, no issues happen
  • With Chrome 74, takes 10 minutes to finish this command

Especially, it only happens with headless chrome.

I also tried to upgrade the WebDriver to ChromeDriver 74.0.3729.6, but the issue still persists

Is there any solutions for this one? Thank you very much!

like image 402
Linh Nhat Nguyen Avatar asked May 07 '19 10:05

Linh Nhat Nguyen


People also ask

How long does it take to clear cookies and cache in Chrome?

Over time your cache will update to the latest changes, however, it can take it awhile (usually 24 hours).


1 Answers

I was having this exact same problem in headless mode with Chrome 74, ChromeDriver & Selenium (via Geb). Once I added the following flag to ChromeDriver everything started working again:

--enable-features=NetworkService,NetworkServiceInProcess

I hope this helps you too.

like image 65
AnotherDeveloper Avatar answered Sep 22 '22 04:09

AnotherDeveloper