Message - Cannot highlight this object on screen.

Applies to TestComplete 15.63, last modified on April 10, 2024

TestComplete displays this message after you apply the “Highlight on Screen” command to some test object in the Object Browser panel, Keyword Test editor or some other editor, panel or dialog in TestComplete, and TestComplete is unable to highlight the object.

This can happen for the following reasons:

  • The object, to which you've applied the command, is not a window or control. TestComplete can highlight only windows and controls, but cannot highlight processes, for example.

  • The selected object does not exist. This may happen, for instance, if you've applied the command to an object that provides access to a context menu. These menus are available only when they are visible; they are not displayed when you switch to the TestComplete window.

  • The selected object is not visible (its Visible property is False). This can happen if there are hidden application forms. They exist in the application, but are not visible, so TestComplete is unable to highlight them.

    To check the value of the Visible property, explore the tested application and its windows and controls in the Object Browser panel.

  • To highlight a window or control, TestComplete first activates it, that is, it brings the window or the control’s parent window to front. TestComplete may be unable to do this if the window cannot be activated. This may happen because the window is overlapped by some modal dialog box in the tested application, or if the window is outside of the screen bounds.

Highlight search results