undetected-chromedriver icon indicating copy to clipboard operation
undetected-chromedriver copied to clipboard

cookies and cache

Open smurfman opened this issue 3 years ago • 2 comments

First of all thank you for the great package!

I noticed that unlike the unmodified chromedriver, the undetected chromedriver does not delete cookies and cache after a session ends. Why was this feature taken out in the modification?

smurfman avatar Nov 24 '21 19:11 smurfman

Same issue.

gabrielmajosi avatar Jul 05 '22 22:07 gabrielmajosi

Each time you instantiate a driver a temp profile folder is created for this sessions, cookies and cache are deleted when you quit() it.

If you specify a user_data_dir then the profile is kept with all its cookies and cache.

So you can do both.

sebdelsol avatar Jul 06 '22 10:07 sebdelsol