0

So whenever i start an automation process with in my case specifies in logging in every time.

I want a new session every time i start a new browser but i find the user already logged in is there anyway to clear the data after i'm done with my task ? I'm using chrome driver

AX EL
  • 1
  • 1
  • 3
  • You might want to delete all the cookies, refer to [link](https://stackoverflow.com/questions/46529761/python-selenium-clearing-cache-and-cookies) on how to delete them – Loukik Jul 16 '21 at 10:00
  • Are you using any options when you launch chromedriver? Can you share your initialisation code? - the default selenium behaviour is to use a new chrome profile every time you press run. The purpose is to prevent state from persisting between tests (which is what you are seeing) – RichEdwards Jul 16 '21 at 14:53

0 Answers0