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

查看:353
本文介绍了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的这些 以外,您还需要在目标计算机上设置一个 registry条目,以便驱动程序可以保持与它创建的 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_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. 

  • 对于64位Windows安装,密钥为:

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

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. 
    

    • How does the registry entry HKEY_LOCAL_MACHINE\…\FEATURE_BFCACHE for InternetExplorerDriver solves the Internet Explorer 11 issue?
    • Internet Explorer Protective mode setting and Zoom levels
    • Selenium InternetExplorerDriver doesn't get focus on the window
    • How to ignore protected Mode Settings for Internet Explorer using setCapability() through Selenium and Java?

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

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