通过Selenium与IE 11配合使用的正确IEDriverServer版本是什么 [英] What is the correct IEDriverServer version to use with IE 11 through Selenium

查看:1347
本文介绍了通过Selenium与IE 11配合使用的正确IEDriverServer版本是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新到Windows 10(x64).我的旧台式机具有IE 11,但运行Windows 7的版本较低,因为我现在具有以下IE版本:

I just got updated to Windows 10 (x64). My old desktop had IE 11 but a lower version, as it was running Windows 7. I now have the following IE version:

Version: 11.648.17134.0
Update Versions: 11.0.115

我下载了Selenium给我的最新的IEDriverServer.exe(3.14).当我运行它时,当我执行get(url)(各种url)时,此后它找不到元素.我看了一下,发现在get()之前,driver.getWindowHandles()有一个条目,但是在get()之后,它有0个条目.这是最新版本.我尝试设置兼容模式,但效果不佳(设置或未设置).该测试将在Chrome上正常运行,但是其他人编写了该测试,并且在调用element.sendKeys(str)之前未验证值是否为非空,IE似乎允许该值,但Chrome抛出异常.实例太多了.

I downloaded the latest IEDriverServer.exe that Selenium gave me (3.14). When I run it, when I do the get(url) (various urls), afterwards it fails to find elements. I looked and noticed that before the get(), driver.getWindowHandles() had one entry, but after the get() it had zero entries. This is the latest version. I tried setting compatibility mode but that did not do any good (set or not set). The tests will work fine with Chrome but someone else wrote the test and did not verify values were non-null before calling element.sendKeys(str), which IE appears to allow but Chrome throws an exception. And there are so many instances.

因此,我需要为我的Windows 10 IE找到正确的IEDriverServer,但这样做有麻烦. Google除了给我带来了我已经下载的驱动程序之外没有给我太多的东西.

So, I need to find the correct IEDriverServer for my Windows 10 IE but I am having trouble doing so. Google did not give me much except it led me to the driver I already downloaded.

任何人都可以帮忙吗?

推荐答案

是的,您是对的.以前,它会警告您这些区域不相同,甚至无法启动.现在它不会警告您,也不会警告您,但会失败.

Yes, you were right. Previously it would warn you that the zones weren't the same, and not even start. now it does not warn you and chugs along but fails.

这篇关于通过Selenium与IE 11配合使用的正确IEDriverServer版本是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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