Microsoft Edge清理会话 [英] Microsoft Edge clean session

查看:130
本文介绍了Microsoft Edge清理会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft Edge驱动程序在运行硒测试时不保证干净的会话.我可以指定所需的功能来解决此问题吗?

Microsoft Edge driver does not ensure clean session whenever it runs selenium tests. Is there an option I can specify to desired capabilities to fix this?

推荐答案

今天自己遇到了这个问题,所以最后使它起作用的唯一方法是非常简单的.您必须在Edge设置中选中关闭浏览器时始终清除它"(并选择要清除的内容).

Just encounter that issue myself today so the only way I got it to work was pretty simple in the end. You have to check "Always clear this when I close the browser" in Edge settings (and select the things that you want to clear).

有了该设置,您将在每次新的驱动程序初始化时进行干净的会话:)

With that setting you will have clean session on each new driver initialization :)

这篇关于Microsoft Edge清理会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆