deleteAllVisibleCookies (current domain) - Selenium IDE command

deleteAllCookies clears all cookies stored by Chrome. Together with selectWindows TAB=CLOSEALLOTHER (which closes all open tabs) it is a useful command to “clean up” at the start of a test.

Another option: The Kantu extension supports Google Chrome's incognito mode (stealth mode) - this allows you to start your regression and performance test from a fresh Chrome profile with a clear cache and no cookies. Incognito is even "stronger medicine" than deleteAllVisibleCookies since it also makes sure the browser cache empty. Just remember to check the "Allow in incognito" box for your Kantu addon on the Chrome extension page.

A good test page is http://www.html-kit.com/tools/cookietester/.

deleteAllCookies Example

Command Target Pattern/Text
deleteAllCookies

Works in

Kantu for Chrome Selenium IDE, Kantu for Firefox Selenium IDE, Firefox IDE Classic, but note that in the classic Firefox Selenium IDE this was called deleteAllVisibleCookies, but we prefer the shorter WebDriver terminology, which uses just deleteAllCookies.

Related Demo Macros

Demo-Autofill, Demo-Frame

The ready-to-import-and-run source code of all demo macros can be found in the Github repository testmacros folder.

See also

storeEval, Web Automation Extension User Manual, Selenium IDE commands, Classic Firefox Selenium IDE.

Anything wrong or missing on this page? Suggestions?

...then please contact us.

Kantu Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the a9t9 automation software newsletter . We'll send you updates on new releases that we're working on.