Tests not running on Internet Explorer 11

Problem

Automated tests running on Internet Explorer 11 fail randomly with the following message:

  1. Window not found. 

  2. Unable to get browser

  3. Random Element not found.

Solution

To work around the above issue, perform the following steps one by one and check :

  1. Add the site under test to trusted sites. - This has shown to resolve most of IE 11 issues.

  2. Create a DWORD value with the name "iexplore.exe" and the value of 0 in the following key 

    1. For 32-bit Windows

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

    2. For 64-bit Windows

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

Note :- FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present.


Â