This topic describes Firefox settings required by TestComplete for automated web testing. Make sure you have configured Firefox in this way on all the computers where you are going to record and run tests.
|If you use multiple user accounts for testing purposes on your computer, make sure all account-specific browser options are set for each account.|
New versions of Firefox are released frequently. If the browser’s auto-update feature is enabled, it can automatically upgrade Firefox to a version that is not yet supported by TestComplete.
To avoid this, we recommended that you disable the browser’s auto-update feature on the test machine and install the latest Firefox version that is supported by your TestComplete version manually.
To disable the auto-update feature:
Select Tools > Options from the main menu of Firefox.
Go to the Advanced panel and switch to the Update tab.
Set the Firefox updates property to "Check for updates, but let me choose whether to install them" or to "Never check for updates".
To learn which Firefox versions are supported by TestComplete, go to the Mozilla Firefox Patches page.
Some add-ons (for example, the Softonic Toolbar and Flash Debugger add-ons) may cause unexpected behavior of the browser, or even modify network traffic, which will not allow you to perform automated web testing. So, we recommended that you disable all third-party add-ons unless they are required for testing.
To disable add-ons:
Select Tools > Add-ons from the main menu of Firefox.
Select the Extensions or Plugins page.
Select an add-on and click the Disable button.
For detailed instructions, see http://support.mozilla.org/en-US/kb/disable-or-remove-add-ons.
Important: Recent Firefox versions can work in multiprocess mode in which Firefox creates several processes in the operating system. In version 53 and earlier, this mode was optional. Since version 54, this is the default functioning mode of the browser.
If Firefox is running in this mode, TestComplete might experience issues with:
Detecting web dialogs like Alert, Confirm or Prompt.
Detecting the browser’s active tab.
Testing Flash and Flex applications.
If you encounter such issues, you can disable the multiprocess mode:
Start Firefox and type
about:config in the Address bar. This will open the page with Firefox settings.
browser.tabs.remote.autostart property in the list and set its value to
If you have the
browser.tabs.remote.autostart.2 property in the preference list, set its value to
false as well.
If you do not have the property in the list, ignore this step.
We also recommend that you configure certain Firefox settings as described below. While these settings are not necessarily required for automated testing, using them will help you avoid unexpected browser-specific warnings and improve Firefox performance during test recording and test run.
To configure the following Firefox settings, type about:config in Firefox’s address bar and press Enter. To find a specific option quickly, type its name in the Search box. If the specific option does not exist, you can create it by right-clicking the table and selecting New.
|app.update.auto||false||Disable automatic downloading and installing of Firefox updates to avoid unexpected dialogs.|
|app.update.enabled||false||Disable automatic checking for updates to avoid unexpected dialogs.|
|app.update.silent||true||Suppress UI prompts for updates to avoid unexpected dialogs.|
|browser.formfill.enable||false||Disable automatic completion of forms to prevent unexpected behavior during test recording and run.|
|extensions.update.enabled||false||Disable checking for updates for Firefox extensions to avoid unexpected dialogs during test recording and run.|
|signon.autofillForms||false||Do not automatically fill login forms with user names and passwords to prevent unexpected behavior during test recording and run.|
|signon.rememberSignons||false||Disable Firefox Password Manager to prevent unexpected behavior when logging in to web applications during test recording and run.|
TestComplete configures the following Firefox settings automatically when it launches Firefox or when it opens a web page in Firefox. This happens when one of the following is called in your test:
The Run Browser operation.
The Navigate operation.
After TestComplete modifies the settings, it will not restore them to their initial values. You will have to restore them manually, if you need to.
|browser.sessionstore.resume_from_crash||false||Disable Firefox crash recovery to prevent unexpected browser behavior during test recording and run.|
|browser.shell.checkDefaultBrowser||false||Disable checking if Firefox is the default browser in order to prevent unexpected messages on startup.|
|browser.startup.page||0||Start Firefox and open new tabs with a blank page (about:blank) to improve performance and avoid recording of superfluous web pages.|
|browser.tabs.warnOnClose||false||Disable warning when closing multiple tabs to avoid unexpected messages during test recording and run.|
|browser.tabs.warnOnOpen||false||Disable warning when opening multiple tabs to avoid unexpected messages during test recording and run.|
|false||Since version 52, Firefox shows a warning about a possible user credentials exposure on HTTP web sites. The warning usually appears next to the user name and password edit boxes. To prevent the warning from disrupting your automated testing, disable it by setting the options to false.|
|toolkit.startup.max_resumed_crashes||-1||If Firefox exits unexpectely one or more times in a row, the next time it starts, it will show the Firefox Safe Mode dialog. To prevent this dialog from disrupting your automated testing, disable it by settings the option to -1.|
|security.sandbox.content.level||1||Affects security levels of Firefox, see wiki.mozilla.org/Security/Sandbox#Content. For TestComplete to be able to access Firefox processes, set this setting to 1.|
If your web tests require that the same instance of Firefox be running for a long time, then consider optimizing Firefox’s memory consumption as well. For detailed instructions on how to do that, see https://support.mozilla.org/en-US/kb/firefox-uses-too-much-memory-ram.