Google Chrome: Unable to run automated tests

Problem

During an automated test run, the following warning message appears in the Automation Problem dialog box or test result:

Chrome was not configured in the correct manner. Please refer to web testing section in TestArchitect Help to learn how to reconfigure Chrome for testing.

Note that improper configuration of Chrome results in automation playback being unable to properly match web controls. Hence, for example, a check control exists action would produce a Failed result despite the existence of the target control.

Solution

You can resolve this issue in one of two ways:
  • Option #1: Manually reconfigure Chrome.
    Follow the steps below:
    1. Stop the currently running test.
    2. Follow the procedure discussed in Setting command line switches.
    3. Re-run the automated test.
  • Option #2: Use the navigate action.
    Note: The built-in navigate action automatically reconfigures Chrome by setting several of its command line switches.
    1. Stop the currently running test.
    2. Close Google Chrome, if open, and terminate any running Chrome-related background processes.
    3. Insert the navigate action in an action line prior to any actions that interact with GUI web controls.
      Important: Only a value for the action's location argument should be specified. If your test needs require you to specify a window argument as well, ensure that the specified window is reconfigured and launched .
    4. Re-run the automated test.