惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
GbyAI
GbyAI
P
Proofpoint News Feed
Microsoft Security Blog
Microsoft Security Blog
月光博客
月光博客
I
InfoQ
V
Visual Studio Blog
罗磊的独立博客
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
Jina AI
Jina AI
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
The Cloudflare Blog
小众软件
小众软件
雷峰网
雷峰网
V
V2EX
人人都是产品经理
人人都是产品经理
Stack Overflow Blog
Stack Overflow Blog

博客园 - SimpleSmile

Axure10 在线编辑echart mysql获取库内所有表ddl结构说明 windows环境下安装kafka pip升级 关于SpringBoot的valid校验运行原理-自学 centos下python3.6.8 安装ssl模块 windows根据文件名找到进程,并杀死进程。 Oracle关联表进行修改操作(查询某个表,以某个表作为基础,修改其它表) 解决CentOS 7.x虚拟机无法上网的问题 ORA-00972: identifier is too long异常处理 resttemplate 由于框架原因自带了转xml方式,不改变框架底层情况下,修复为返回json格式 java 操作excel 当jar包执行时,内嵌的文件找不到时,可以这样解决! Email Windows发送成功,Linux却发送失败的可能原因 解决linux时间转换为yyyy-MM-dd md5加密中文windows和linux不一致 mysql sql查询中文正常,而jdbc查询出来是byte[]类型处理 单表递归,查询组织及其自组织的内容信息 vi 关闭自动缩进 python 读写word
【WebDriver实战问题】selenium调用IE11浏览器,报错“找不到...
SimpleSmile · 2021-09-22 · via 博客园 - SimpleSmile
转自:https://www.cnblogs.com/conquerorren/p/12982045.html
刚好遇见这个问题,感觉很奇怪。多方查找,找到这个,给自己做保留。

IE11不支持Selenium 2.0,在什么情况下不支持呢?比如:通过WebDriver获取页面上的元素时,经常会捕获到这样的异常: OpenQA.Selenium.NoSuchWindowException: Unable to find element on closed window at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) in c:\Projects\webdriver\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 1139 解决方法: For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. (这段告诉你需要修改注册表。) For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. (32bit Windows看这里。) For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.(64bit Windows看这里。) 翻译过来的意思即,修改你的注册表(Run->regedit->Enter),路径如下: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE 如果FeatureControl下没有FEATURE_BFCACHE,就以FEATURE_BFCACHE为名new一个key!并在其下创建一个DWORD,取名为:iexplore.exe,value为0。




修改完你的注册表后,重启你的计算机。之后以管理员权限运行Visual Studio(或者eclipse),打开你的项目,运行,你会发现,问题解决了。(注意:如果不使用管理员身份运行将仍然报错。)