Selenium scripts fail after newest Windows update

泪湿孤枕 提交于 2019-12-12 04:56:52

问题


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?

Thanks a lot!


回答1:


Yes as I stated here

If you have taken windows update KB3025390 IE will not work as expected. There is currently no resolution to that yet.

Also, Uninstalling the update KB3025390 should make the WebDriver work correctly with Internet Explorer 11. See this answer



来源:https://stackoverflow.com/questions/28069064/selenium-scripts-fail-after-newest-windows-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!