IEDriverServer的Selenium命令行服务器已停止运行App Crash错误 [英] Selenium Command line server for the IEDriverServer has stopped working App Crash error

查看:487
本文介绍了IEDriverServer的Selenium命令行服务器已停止运行App Crash错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Server 2008的IE11的64位服务器上运行了一个Selenium Python自动回归测试脚本.每次测试通过错误对话框的一半时,都会出现测试并停止.错误是:

Command line server for the IEDriverServer has stopped working

完整的踪迹是:

   Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: IEDriverServer.exe
  Application Version:  2.53.0.0
  Application Timestamp:    56e9abe3
  Fault Module Name:    IEDriverServer.exe
  Fault Module Version: 2.53.0.0
  Fault Module Timestamp:   56e9abe3
  Exception Code:   40000015
  Exception Offset: 000000000001877a
  OS Version:   6.1.7601.2.1.0.272.7
  Locale ID:    2057
  Additional Information 1: 9d60
  Additional Information 2: 9d60a3c1cb1d5911598c0ff40a26278a
  Additional Information 3: 1ee9
  Additional Information 4: 1ee9da2f8e2415daed3ffe0e1066b74e

有人知道为什么IEDriverServer崩溃吗?

在我们的32位服务器上,测试一直运行到最后.超过230个测试用例.但是在我们的64位服务器上,App Crash错误出现了一半.

我已经设置了注册表DWORD值:

仅对于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.

IEDriverServer.exe也位于我的路径中

我也注意到在任务管理器iexplore.exe中,它的内存使用量为2.95GB 这正常吗?记忆似乎真的很高. Selenium是否需要超过2.95GB的内存才能在IE11中运行测试?

谢谢里亚兹

解决方案

如果将64位操作系统使用32位IEDriverServer.exe,则切换到64位IEDriverServer.exe,因为可能会导致32位与64位组合不匹配的原因IE驱动程序崩溃的原因,现在,如果使用64位IEdriverserver.exe,并且您遇到输入速度慢的问题,则可以通过IE 11浏览器解决64位exe的问题,请按照以下步骤操作:

Internet选项->安全->选中所有区域的启用保护模式"

转到高级->安全->选中启用增强的保护模式"

这对我有用.干杯!

I have a Selenium Python automated regression test script running on our 64bit Server on IE11, Windows Server 2008. Everytime when the test gets about half way through an error dialog appears and the test stops. The error is:

Command line server for the IEDriverServer has stopped working

The full trace is:

   Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: IEDriverServer.exe
  Application Version:  2.53.0.0
  Application Timestamp:    56e9abe3
  Fault Module Name:    IEDriverServer.exe
  Fault Module Version: 2.53.0.0
  Fault Module Timestamp:   56e9abe3
  Exception Code:   40000015
  Exception Offset: 000000000001877a
  OS Version:   6.1.7601.2.1.0.272.7
  Locale ID:    2057
  Additional Information 1: 9d60
  Additional Information 2: 9d60a3c1cb1d5911598c0ff40a26278a
  Additional Information 3: 1ee9
  Additional Information 4: 1ee9da2f8e2415daed3ffe0e1066b74e

Anyone know why the IEDriverServer is crashing?

On our 32bit server the tests runs ok all the way to the end. Over 230 test cases. But on our 64bit server the App Crash error appears half way through.

I have set the registry DWORD value:

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. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.

IEDriverServer.exe is also in my Path

And also i notice in Task Manager iexplore.exe it's memory usage is 2.95GB Is this normal? The memory seems really high. Does Selenium need over 2.95GB of memory to run the tests in IE11?

Thanks, Riaz

解决方案

If you are using 32bit IEDriverServer.exe for 64Bit OS then you switch over to 64 Bit IEDriverServer.exe because there could be reason of mismatch 32bit to 64 bit combination behind crashing of IE driver, and now if using 64 bit IEdriverserver.exe and you are having slow typing issue then to overcome this issue for 64bit exe over IE 11 browser Follow these steps:-

Internet Options -> Security -> Check "Enable Protected Mode" for all zone

Go to Advanced -> Security -> Check "Enable Enhanced Protected Mode"

this works for me. Cheers!

这篇关于IEDriverServer的Selenium命令行服务器已停止运行App Crash错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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