Preparing Web Browser

Applies to TestComplete 15.47, last modified on January 20, 2023
Flash Player has reached end of life on December 31, 2020. Support for Flash and Flex applications is now deprecated in TestComplete and will be removed in a future release.

The information in this topic applies to web tests that locate web objects by using internal identification properties provided by TestComplete and run in local environments.

In order for TestComplete to work properly with a Flash or Flex application embedded into a web page, you may need to prepare your web browser in a special way. Pay attention to the following requirements before recording or running your tests:

Setting Browser Zoom to 100%

The zoom setting of web browsers must be set to 100% so that TestComplete can identify web page elements correctly. To learn how to set the zoom, see the topics of the Preparing Web Browsers section.

Preparing Internet Explorer

On Windows Vista and later Windows versions, we recommend disabling Internet Explorer protected mode to speed up test recording and test runs:

  1. From Internet Explorer main menu, select Tools | Internet Options.

  2. Switch to the Security tab.

  3. Clear the Enable Protected Mode check box and click OK.

  4. Restart Internet Explorer.

Preparing Mozilla Firefox

Note: If you use the 64-bit version of Firefox, TestComplete may not be able to acces your tested application by using the MSAA engine.

Disabling Flash Player Sandbox Mode

If you use Firefox version 65 or later, disable the Flash Sandbox security mode:

  1. Start Firefox and type about:config in the Address bar. This will open the Firefox settings page.

  2. Find the dom.ipc.plugins.sandbox-level.flash property in the list and set it to 0.

– or –

  1. Open Windows Control Panel. To do this, you can, for example, click Start and then click Control Panel.

  2. In the Search box, type environment variables and then click Edit environment variables for your account.

  3. In the resulting dialog, create an environment variable named MOZ_DISABLE_NPAPI_SANDBOX with any value.

  4. Save the changes.

Disabling Flash Player Protected Mode

Starting from version 11.3, Firefox Flash Player plugin runs in protected mode on Windows Vista and later Windows versions. The protected mode may cause Flash Player to freeze or crash. If you experience these issues, disable Flash Player protected mode:

  1. Open Flash Player configuration file mms.cfg in a text editor, for example, in Notepad. The mms.cfg file is in one of the following folders:

    • On 32-bit Windows: %WINDOWS%\System32\Macromed\Flash\

    • On 64-bit Windows: %WINDOWS%\SysWOW64\Macromed\Flash\

    If the mms.cfg file does not exist, create it.

  2. Add the following line at the end of the mms.cfg file and save the changes.

    ProtectedMode=0

To enable the protected mode again, remove ProtectedMode=0 from the mms.cfg file.

Disabling Asynchronous Plugin Rendering

In Firefox 55 and later, disable asynchronous plugin rendering:

  1. Start Firefox and type about:config in the Address bar. This will open the Firefox settings page.

  2. Find the dom.ipc.plugins.asyncdrawing.enabled property in the list and set it to false.

See Also

Preparing Flash and Flex Applications for Testing via the MSAA Engine

Highlight search results