Clears the browsers cache and all cookies. Can be useful, for example, to delete Web site cookies so every macro run starts at the same point. It is also useful to use this command before doing website response measurements. In iMacros for Firefox 10, the command accepts optional parameter which restricts cookies removal to specified domain or URL.
- Optional, available in iMacros for Firefox 10 only.
Use the CLEAR command so that times of website response measurements are not influenced by using local cache data:
CLEAR SET !FILESTOPWATCH mydata.csv STOPWATCH ID=total URL GOTO=http://www.imacros.net STOPWATCH ID=total
- Starting with V7.51 the CLEAR command behavior has changed slightly in iMacros for IE and the iMacros Browser. While it previously worked just like IE's "Delete Cookies" menu entry, it now works like in FireFox, deleting both session and persistent cookies.
- Unlike iMacros for Chrome, the CLEAR command in iMacros for Firefox 10 clears both cache and cookies. It also accepts an argument to filter the cookies to be cleared by domain name. Using CLEAR with no argument clears all cookies and cache. Using e.g.
will clear all of the cache, but only cookies from Facebook. If you only want to clear the cache, then specify a nonexistent domain name: