deleteAllCookies - Selenium IDE
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 Ui.Vision RPA 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 Ui.Vision RPA addon on the Chrome extension page.
A good test page is http://www.html-kit.com/tools/cookietester/.
An option to delete all cookies and the remove browsing history and clear the cache simulate the Clear Browsing Data shortcut.
deleteAllCookies Example
Command | Target | Pattern/Text |
---|---|---|
deleteAllCookies |
Works in
Ui.Vision RPA for Chrome Selenium IDE, Ui.Vision RPA 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 Open-Source RPA software Github repository.
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.