selenium中清缓存的方法

               

在测试case的时候,往往需要清理浏览器的缓存,才能进行新的case测试

在selenium中如何清理缓存呢?

其实就是清cookie!!!

selenium.deleteCookie("Cookie:[email protected]/", "c:/Administrator/AppData/local/Microsoft/Windows/Temporary Internet Files");

第一个参数是缓存的名字

第二个参数是缓存存放的位置


           

猜你喜欢

转载自blog.csdn.net/qq_44884203/article/details/89085876