Forums/Twist Community & Support/Twist Knowledge Base

Deleting Browser cookies using Sahi

Mansi Shah
posted this on June 04, 2011 05:03

You could use the following to delete cookies:

browser.execute("_sahi._deleteCookie()") and provide the cookie name itself as a parameter in the deleteCookie js call.

Eg: if the cookie is called User_Cookie

browser.execute("_sahi._deleteCookie('User_Cookie')");