Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Browser.clearCookies() documentation states that all cookies will be deleted, but that doesn't happen #159
Originally created by Hans Westerbeek.
This invokes a method on an implementor of WebDriver Options interface:
Update documentation to be clear on what
Originally posted by Sean Gilligan.
I'm using OAuth (e.g. Twitter) and the Facebook JS SDK. To properly test interactions I need to clear all cookies. The documentation should make it clear that deleteAllCookies() doesn't delete all cookies. An example of how to clear all cookies by clearing the driver cache would be helpful, too.
And, of course, a clearAllCokiesAllDomains() method would be the best solution of all.
Originally posted by Marcin Erdmann.
Yes, the documentation needs to be indeed updated with regard to that.
I don't think we will be able to provide a method that automatically clears all the cookies from all the domains that were visited as it's hard if not impossible to track all the domains that were visited. I will modify the issue to add