[Wtr-general] How to clear the cache of the browser?

Bach Le forum-watir-users at openqa.org
Thu Mar 8 14:18:11 EST 2007


Swarma,

Actually, I believe keeping the cookies from writing to disk is a better solution than the one Paul is suggesting (using code to delete it). In IE7 (don't know about 6 but I think it is possible). 

In IE7, do the following:

1. Tools -> Internet Options
2. Click on the "Privacy" Tab
3. Click on the "Advanced" button
4. Check "Override automatic cookie handling"
5. Under First-Party Cookies, select "Block"
6. Under Third-Party Cookies, select "Block"
7. Check "Always allow session cookies"

This will keep the cookies in memory for as long as the browser is open and clears them when the browser is closed. Cookies are never written to disk so the data does not persist across multiple IE processes.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6796&messageID=19696#19696


More information about the Wtr-general mailing list