WebDriver测试未在IE11上运行 [英] WebDriver test not running on IE11

查看:106
本文介绍了WebDriver测试未在IE11上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行WebDriver测试时,他们根本不工作。到目前为止我做了什么:
1)我已更新我的注册表项以包含FEATURE_BFCACHE
2)所有区域的保护模式设置相同
3)禁用增强保护模式
4)我也试过在我的PATH中设置IEDriverServer

When I run my WebDriver test they are not working at all. What I've done so far: 1) I've updated my registry key to include FEATURE_BFCACHE 2) Protected mode settings are the same for all zones 3) Enhanced Protected Mode is disabled 4) I've also tried with setting IEDriverServer in my PATH

测试在Chrome,Firefox等上工作正常但是当我在IE11上运行时我得到:

Test are working fine on Chrome, Firefox etc. but when I'm running on IE11 I get:

Caused by: org.openqa.selenium.NoSuchElementException: Unable to find element with css selector == a[href='#pricing'] (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 270 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:02:37'
System info: host: 'C025', ip: '169.254.167.218', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51'
Session ID: 8bb9e652-976a-4b46-88dd-9fb339a0d352
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, ignoreProtectedModeSettings=false, cssSelectorsEnabled=true, requireWindowFocus=false, initialBrowserUrl=http://localhost:23811/, handlesAlerts=true, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]

我正在使用eclipse用java编写我的代码,其余的设置是:
1)selenium-server-standalone-2.44.0.jar
2)IEServerDriver.exe 32位
3)Windows 7 64位
4)java.version:1.7.0_51

I'm using eclipse to write my code with java, the rest of my setup is: 1) selenium-server-standalone-2.44.0.jar 2) IEServerDriver.exe 32bit 3) Windows 7 64bit 4) java.version: 1.7.0_51

任何帮助都会非常感谢。

Any help would be much appreciated.

推荐答案

如果您更新了 KB3025390 IE 将无法正常工作。目前还没有解决方案。请参阅

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

此外,卸载更新KB3025390应该使WebDriver能够正常使用Internet Explorer 11.请参阅回答

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

这篇关于WebDriver测试未在IE11上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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