【发布时间】:2014-07-10 01:52:32
【问题描述】:
我正在使用 WebDriver 自动化我们的 web 应用程序的回归套件,我试图让我的测试脚本在 IE11 上运行,但没有任何成功。
我了解 IEDriverServer.exe 目前不支持 WebDriver,并且该问题需要 Microsoft 的合作,我已尝试在对 Selenium 问题 #6511 的回复中列出的步骤。
-
(仅对于 IE 11,您需要在目标计算机上设置一个注册表项,以便驱动程序可以保持与其创建的 Internet Explorer 实例的连接。对于 32 位 Windows 安装,您必须检查的密钥在注册表编辑器中是 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE。
对于 64 位 Windows 安装,密钥是 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE。请注意,FEATURE_BFCACHE 子项可能存在也可能不存在,如果不存在,则应创建它。在此键中,创建一个名为 iexplore.exe 的 DWORD 值,值为 0。)
-
所有区域的保护模式设置都相同
-
增强保护模式已禁用。
但是当我在 IE11 中执行我的自动化脚本时,它仍然在打开浏览器并低于异常
org.openqa.selenium.ElementNotVisibleException: Received a JavaScript error attempting to
click on the element using synthetic events.We are assuming this is because the element
isn't displayed, but it may be due to other problems with executing JavaScript. (WARNING:
The server did not provide any stacktrace
information)
谁能帮我解决这个问题。我需要在 IE11 中执行我的自动化脚本。
版本详情:
-
硒2.41.0
-
InternetExplorerDriver 服务器(32 位)2.40.0.0
-
Windows 7 - 32 位
【问题讨论】:
-
我已经尝试过 Selenium 和 IEDriverServer 相同的版本,即 2.41.0,仍然得到相同的异常。任何人都可以遇到同样的问题,如果您解决了这个问题,请帮助我?
标签: internet-explorer selenium internet-explorer-11