TestProject Forum
Powered by leading experts in the test automation community

Delete cookie with selenium

I’m writing selenium tests with Java.

I am trying to delete cookies from a previous saved form so I can log in again wiith different credentials,

I tried using driver.manage().deleteAllCookies()
but its not deleting all the cookies for some reason…

have you tried deleteAllVisibleCookies ?