[英]Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070005 ('Access is denied.') using IEDriverServer v3.150.1
When I try to run the protractor scripts using IEWebdriver3.150 am getting Access denied Error as:当我尝试使用 IEWebdriver3.150 运行 protractor 脚本时,出现 Access denied 错误:
Error:
E/launcher - Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070005 ('Access is denied.') for URL 'http://localhost:40744/'
I tried to create a Registry FEATURE_BFCACHE and Enable Protected Mode enabled in all security Zones and browser zoom set to 100 %.我尝试创建一个注册表 FEATURE_BFCACHE 并在所有安全区域中启用启用保护模式并将浏览器缩放设置为 100%。
Configuration:配置:
multiCapabilities: {
'browserName': 'internet explorer',
'ignoreProtectedModeSettings': true,
'platform': 'Windows',
'version': '11',
'browserVersion': '11',
'unexpectedAlertBehaviour': 'accept',
'ignoreZoomSetting': true,
'ie.ensureCleanSession': true,
'maxInstances': 4
}
This error message...此错误消息...
Error: E/launcher - Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070005 ('Access is denied.') for URL 'http://localhost:40744/'
...implies that the IEDriverServer was unable to initiate/spawn a new WebBrowsing Session ie internet-explorer browser session. ...意味着IEDriverServer无法启动/生成新的WebBrowsing Session即互联网浏览器浏览器 session。
This issue is generally observed due to incorrect Protected Mode settings由于保护模式设置不正确,通常会观察到此问题
On Internet Explorer 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value.在 Windows Vista 或 Windows 7 上的 Internet Explorer 7 或更高版本上,您必须将每个区域的保护模式设置设置为相同的值。 The value can be on or off, as long as it is the same for every zone.
该值可以打开或关闭,只要每个区域都相同。 To set the Protected Mode settings you have to choose "Internet Options" from the "Tools" menu and then click on the Security tab .
要设置保护模式设置,您必须从“工具”菜单中选择“Internet 选项”,然后单击“安全”选项卡。 For each zone, there will be a check box at the bottom of the tab labeled Enable Protected Mode .
对于每个区域,标签底部都有一个标记为Enable Protected Mode的复选框。
@JimEvans in his article You're Doing It Wrong: IE Protected Mode and WebDriver clearly mentions: @JimEvans 在他的文章You're Doing It Wrong: IE Protected Mode and WebDriver中明确提到:
Using the capability doesn't solve the underlying problem though.
但是,使用该功能并不能解决根本问题。 If a Protected Mode boundary is crossed, very unexpected behavior including hangs, element location not working, and clicks not being propagated, could result.
如果跨越保护模式边界,可能会导致非常意外的行为,包括挂起、元素位置不起作用以及点击不传播。 To help warn people of this potential problem, the capability was given big scary-sounding names like
INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
in Java andIntroduceInstabilityByIgnoringProtectedModeSettings
in .NET .为了帮助警告人们这个潜在问题,该功能被赋予了听起来很吓人的名字,例如Java中的
INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS
和.NET中的IntroduceInstabilityByIgnoringProtectedModeSettings
。 We really thought that telling the user that using this setting would introduce potential badness in their code would discourage its use, but it turned out not to be so.我们真的认为告诉用户使用此设置会在他们的代码中引入潜在的错误会阻止其使用,但事实并非如此。
Additionally, for IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates.此外,仅对于IE 11 ,您需要在目标计算机上设置一个注册表项,以便驱动程序可以保持与它创建的 Internet Explorer 实例的连接。
For 32-bit Windows installations, the key you must examine in the registry editor is:对于 32 位 Windows 安装,您必须在注册表编辑器中检查的键是:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE.
For 64-bit Windows installations, the key is:对于 64 位 Windows 安装,关键是:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE.
Note The FEATURE_BFCACHE
subkey may or may not be present, and should be created if it is not present.注意
FEATURE_BFCACHE
子项可能存在也可能不存在,如果不存在,则应创建它。 Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.重要提示:在此键中,创建一个名为 iexplore.exe 且值为 0 的 DWORD 值。
You can find a couple of relevant detailed discussions in:您可以在以下位置找到一些相关的详细讨论:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.