How to setup IE-Support for Ranorex Webtestit


#1

To run tests with Internet Explorer some manual adjustments are required.

Currently only Internet Explorer 11 is supported.
Currently it’s not possible to execute x32 tests on x64 systems. They always will run on the x64 platform.

You need to set the FEATURE_BFCACHE property for X32 & X64 machines:

ie_32.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE]
"iexplore.exe"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"TabProcGrowth"=dword:00000000

ie_64.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE]
"iexplore.exe"=dword:00000000

[HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Internet Explorer\Main]
"TabProcGrowth"=dword:00000000
Make sure you disable the protected mode in ALL zones in the Internet Explorer settings

After setting those options a reboot is recommended.

Now the tests should run on Internet Explorer.

Considerations when testing with IE:

  • Make sure you maximize the browser:
    • java: driver.manage().window().maximize();
  • Make sure you use selenium-java 3.11.0 or higher in your POM.xml

POM.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  .
  .
  .
  <dependencies>
    .
    .
    .
    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>3.11.0</version>
    </dependency>
    .
    .
    .
  </dependencies>
  .
  .
  .
</project>

Note: If you disable the protected mode, the first time you launch Internet Explorer you’ll see a message to re-enable it. Dismiss it by clicking Don't show this message again, otherwise, it’s possible that Selenium is not able to click content that is occupied by the warning.


Tests on IE and Edge fails
Java sample project fail on IE Win 7 (64bit)
Test case count with failed tests incorrect in report
End point IE , Edge and Opera failed in 0.5.0