How can I delete cookies in WebDriverJS? I want to run some tests on a website that creates login cookies (and I have to clear cookies each time I want to run the tests).
I want to start a clean session each time I run the test. What can I do?
I can confirm that driver.manage().deleteAllCookies()
works in WebDriverJS.
If you view the source and search for deleteAllCookies
you'll see the function.
https://code.google.com/p/selenium/source/browse/javascript/webdriver/webdriver.js#1014
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With