InternetExplorerDriver和IE11的硒性能 [英] Selenium performance with InternetExplorerDriver and IE11

查看:177
本文介绍了InternetExplorerDriver和IE11的硒性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE11上运行脚本时,响应速度非常慢.有时,我得到FocusWindowsClosedElementIsNotClickable.我已经更改了所有区域的缩放设置,在功能控件中为 IE 创建了功能BFCACHE,在代码中添加了功能,但对我没有任何帮助.如果有人知道为什么我要面对这个问题.我需要降级window或IE版本吗?我还用(3.8.0)下载了具有相同IEDriver的相同版本的selenium客户端服务器.

I am facing a very slow response when running my scripts on IE11. Sometimes, I get FocusWindowsClosed, ElementIsNotClickable. I have changed the zoom settings for all zones, created feature BFCACHE for IE in feature control, added capabilities into my code but nothing works for me. If anyone has any idea why I am facing this issue. Do i need to downgrade window or IE versions? I have also downloaded the same version of selenium client server with same IEDriver which is (3.8.0).

推荐答案

首先, 2017-11-30 》中的Selenium v​​3.8.0 大于2岁.甚至错误跟踪日志也将难以调试.因此,根据最佳做法,您可能希望:

To start with, Selenium v3.8.0 of 2017-11-30 is more then 2 years older. Even the error trace logs would be difficult to debug. So as per best practices you may like to:

  • 首先, ...与32位IEDriverServer可执行文件相比,... 64位IEDriverServer可执行文件在输入字段中填充字符序列的事实非常缓慢.问题.

您可以在

  • 确保 Internet Explorer保护模式设置配置正确.
  • 确保正确配置缩放级别.
  • >
  • 确保 ignoreProtectedModeSettings 已正确配置.
  • 确保设置硒以与Internet Explorer一起使用.
  • 确保 FEATURE_BFCACHE 已正确配置.
  • 升级到当前级别版本3.141.59 .
  • >
  • IEDriverServer 升级到最新的 IEDriverServer v3.150.1 级别.

    • Ensure the Internet Explorer Protective mode setting are properly configured.
    • Ensure the Zoom level is properly configured.
    • Ensure ignoreProtectedModeSettings is properly confugured.
    • Ensure setting up selenium to work with internet explorer.
    • Ensure FEATURE_BFCACHE is properly confugured.
    • Upgrade Selenium to current levels Version 3.141.59.
    • Upgrade IEDriverServer to latest IEDriverServer v3.150.1 level.

      注意:按照最佳实践的规定, Selenium Client InternetExplorerDriver 会同步发布,您必须尝试来使用来自同一主要版本的两个二进制文件.

      Note: As per best practices as Selenium Client and InternetExplorerDriver are released in sync and you must try to use both the binaries from the same major release.

    • 通过 IDE
    • 清理您的项目工作区重建您的项目,并且仅具有必需的依赖项.
    • 执行您的@Test.
    • 始终在tearDown(){}方法中调用driver.quit()以关闭&优雅地销毁 WebDriver Web Client 实例.
    • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
    • Execute your @Test.
    • Always invoke driver.quit() within tearDown(){} method to close & destroy the WebDriver and Web Client instances gracefully.
    • 一些参考文献:

      • Internet Explorer 11 getting stuck randomly while executing tests through IEDriverServer and Selenium
      • HTTP Status: '500' -> incorrect JSON status mapping for 'timeout' (408 expected) while clicking element with IEDriverServer Selenium and Java

      这篇关于InternetExplorerDriver和IE11的硒性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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