Handle Property

Applies to TestComplete 15.65, last modified on July 17, 2024


The Handle property returns the object’s window handle (HWND).



Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

An integer value holding the handle.


Since only one window has the focus on screen at any given time, you can use this property to determine whether the window (or control) TestObj is an active window (control).

Highlight search results