Clear WatiN Browser Cache

ClearCache method does not seem to work very well for IE in WatiN. at least this doesn't work for the things you cached. From the moment you opened the instance.

Any suggestions?

I tried using ReOpen, but these are errors. It also looks like

Browser.Close();
Browser = new IE();

It is slow. My tests take about twice as much time to run them this way (which is the only current workaround to clear the cache).

Thanks in advance.

+3
source share
1 answer

Go through this url, it will help you.

http://jawedm.blogspot.com/2009/08/working-with-cookies-and-caches-using.html

using(IE ie = new IE())
{
ie.ClearCache();
ie.ClearCookies();

}
+13
source

Source: https://habr.com/ru/post/1719552/


All Articles