Caption Property (MSAA Objects)

Applies to TestComplete 15.62, last modified on March 14, 2024

Description

Use the Caption property to get the accessibility name of the object. Depending on the object type, it can be the text displayed by the object, the object's caption or a static text that labels the object.

Declaration

TestObj.Caption

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

Applies To

This property is applied to all the objects that are exposed by the MSAA engine.

View Mode

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

Property Value

A string that holds the object's accessibility name.

See Also

ControlIndex Property (MSAA Objects)
ControlIndexInGroup Property (MSAA Objects)
DoDefaultAction Method (MSAA Objects)

Highlight search results