Handle Property

Applies to TestComplete 15.0, last modified on November 17, 2021

Description

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

Declaration

TestObj.Handle

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.

Remarks

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