Internet Explorer 11 在通过 IEDriverServer 和 Selenium 执行测试时随机卡住 [英] Internet Explorer 11 getting stuck randomly while executing tests through IEDriverServer and Selenium

查看:62
本文介绍了Internet Explorer 11 在通过 IEDriverServer 和 Selenium 执行测试时随机卡住的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了 IE 版本 11 随机卡在某些页面上的问题.代码工作正常,因为每当我重新启动程序时,它有时会工作,但最烦人的会在单击并加载页面后随机卡住.这在IE上正常吗?我在使用 Chrome 时从未遇到过此类问题.但是这个网站只适用于 IE.我能知道这个问题的原因是驱动程序吗?网站本身?还是网络安全?

I'm having issues that IE version 11 stuck randomly on some page. the code is working fine because whenever i restart the program sometimes it work but the most annoying will be randomly stuck after click and load the page. is this normal on IE? i never had this type of issues when using Chrome. but this website works only at IE. can i know the cause of this problem is it the driver?, the website itself? or Network security?

推荐答案

当您使用 Internet Explorer v11 时,您需要使用 测试框架="https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver" rel="nofollow noreferrer">所需配置.除了这些仅适用于 IE 11,您还需要在目标计算机上设置 注册表项,以便驱动程序可以保持与它创建的 Internet Explorer 实例如下:

While you work with Internet Explorer v11 you need to configure your test framework with the Required Configuration. Apart from these specifically only for IE 11 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 as follows:

  • 对于 32 位 Windows 安装,您必须在注册表编辑器中检查的键是:

  • For 32-bit Windows installations, the key you must examine in the registry editor is:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE. 

  • 对于 64 位 Windows 安装,关键是:

  • For 64-bit Windows installations, the key is:

    HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftInternet ExplorerMainFeatureControlFEATURE_BFCACHE. 
    

  • 这篇关于Internet Explorer 11 在通过 IEDriverServer 和 Selenium 执行测试时随机卡住的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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