The information in this topic applies to web tests that implement the default approach (rely on Name Mapping and run in local environments).
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:
-
From Internet Explorer main menu, select Tools | Internet Options.
-
Switch to the Security tab.
-
Clear the Enable Protected Mode check box and click OK.
-
Restart Internet Explorer.
Preparing Mozilla Firefox
Disable Flash Player Sandbox
If you use Firefox version 65 or later, disable the Flash Sandbox security mode:
-
Start Firefox and type
about:config
in the Address bar. This will open the Firefox settings page. -
Find the
dom.ipc.plugins.sandbox-level.flash
property in the list and set it to0
.
– or –
-
Open Windows Control Panel. To do this, you can, for example, click Start and then click Control Panel.
-
In the Search box, type environment variables and then click Edit environment variables for your account.
-
In the resulting dialog, create an environment variable named
MOZ_DISABLE_NPAPI_SANDBOX
with any value. -
Save the changes.
Disable 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:
-
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.
-
-
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.
See Also
Preparing Flash and Flex Applications for Testing with the FlexClient Library