Rya*_*yan 3 .net c# caching watin
似乎ClearCache方法在WatiN中对IE不起作用.至少,它对你已经缓存的东西不起作用因为你打开了实例.
有什么建议?
我尝试使用ReOpen,但它出错了.它似乎也做同样的事情
Browser.Close();
Browser = new IE();
Run Code Online (Sandbox Code Playgroud)
这很慢.我的测试只花了两倍的时间来运行(这是清除缓存的唯一当前解决方法).
提前致谢.
Pan*_*hra 14
通过这个网址,这将有助于你.
http://jawedm.blogspot.com/2009/08/working-with-cookies-and-caches-using.html
using(IE ie = new IE())
{
ie.ClearCache();
ie.ClearCookies();
}
Run Code Online (Sandbox Code Playgroud)