Selenium performance with InternetExplorerDriver and IE11

喜夏-厌秋 提交于 2020-02-06 07:58:09

问题


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).


回答1:


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:

  • First of all, the fact that ...64-bit IEDriverServer executable populate the input fields with the character sequence very slowly as compared to 32-bit IEDriverServer executable.... is a known issue.

You can find a detailed discussion in IEDriverServer sends text very slowly using Selenium to the search field

  • 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.

    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.

  • 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.

tl;dr

A couple of references:

  • 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


来源:https://stackoverflow.com/questions/59759426/selenium-performance-with-internetexplorerdriver-and-ie11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!