最新Windows更新后Selenium脚本失败 [英] Selenium scripts fail after newest Windows update
问题描述
我对Selenium和当前的Microsoft更新有疑问:
我刚刚在PC上安装了最新的Microsoft补丁,现在Selenium脚本不再起作用.我在脚本中使用Selenium IE Driver 2.44.0
.我不确定Internet Explorer中的某些更改.脚本突然无法在页面上找到任何Web元素.抛出InvalidSelectorException
的原因是findElements
方法无法执行. IE驱动程序将打开并导航到给定的URL,但是当它尝试查找Web元素时,脚本将失败.我还在尚未安装最新更新的PC上进行了尝试,脚本在那里正常运行,根本没有问题.
您是否有想法该做什么或可能是什么原因?
I have a question regarding Selenium and the current Microsoft updates:
I just installed the newest Microsoft patches on a PC and now the Selenium scripts won't work anymore. I'm using the Selenium IE Driver 2.44.0
in the scripts. Maybe something has changed in the Internet Explorer, I'm not sure. Suddenly the scripts can't find any web elements on the page anymore. An InvalidSelectorException
is thrown because the findElements
methods can't be executed. The IE driver opens up and it navigates to the given URL, but when it tries to find a web element, the script fails. I also tried it out on a PC which hasn't the newest updates installed yet and the scripts are working fine there, there are no problems at all.
Do you have any ideas what to do or what could be the cause?
非常感谢!
推荐答案
是的,正如我所说如果您已Windows更新 KB3025390 ,IE将无法正常工作.目前尚无解决方案.
If you have taken windows update KB3025390 IE will not work as expected. There is currently no resolution to that yet.
此外,卸载更新KB3025390应该可以使WebDriver与Internet Explorer 11一起正常工作.请参见此答案
Also, Uninstalling the update KB3025390 should make the WebDriver work correctly with Internet Explorer 11. See this answer
这篇关于最新Windows更新后Selenium脚本失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!