开发者

WatiN clear browser cache

It seems the ClearCache method doesn't quite work for IE in WatiN. at least, it doesn't work for things you've cached SINCE yo开发者_JAVA百科u've opened the instance.

Any suggestions?

I tried using ReOpen, but it errors. It also seems to do the same thing as

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

Which is slow. My tests take just about twice as long to run doing it that way (which is the only current workaround for clearing the cache).

Thanks in advance.


Go through this url this 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();

}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜