问题
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()
withintearDown(){}
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