Handling 'The tested window (or control) has been deleted' Error

Applies to TestComplete 15.69, last modified on November 13, 2024

About the Error Message

The test engine posts this error message to the test log when the action you want to simulate fails because the tested window (or control) over which the action was to be simulated had been deleted or recreated right before the simulation.

Diagnosing the Problem

  1. Open the test log and locate the “The tested window (or control) has been deleted” error in it.

  2. Switch to the Details panel of the message. There, you can see a detailed description of the error. It contains the handle of the problematic window (or control).

  3. Double-click the “The tested window (or control) has been deleted” error message in the test log. TestComplete will open the test containing the test command that has caused the error and highlight the command.

Possible Causes of the Problem

The window (or control) over which the test action was to be simulated had been deleted or recreated right before the appropriate test action was simulated.

Make sure that the needed window (or control) exists before simulating actions over it. If the target window (or control) is recreated in your application, to avoid possible errors, reobtain the window (or control) in your test before simulating actions over it.

See Also

Other "Object Not Found" Errors
Name Mapping
Object Browser Naming Notation

Highlight search results