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

查看:70
本文介绍了通过 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() 之后它有零个条目.这是最新版本.我尝试设置兼容模式,但没有任何好处(设置或未设置).测试可以在 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,但我在这样做时遇到了麻烦.谷歌并没有给我太多,只是它把我带到了我已经下载的驱动程序.

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.

谁能帮忙?

推荐答案

作为一个经验法则,您始终可以使用各自发布的 Selenium 客户端发布的 IEDriverServer.

As a thumb-rule you can always use the released IEDriverServer from the respective released Selenium clients.

举个例子,

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