Caption Property (Flash and Flex Objects)

Applies to TestComplete 15.65, last modified on July 17, 2024
This property is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This property can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.


Use the Caption property to get the automation 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.



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 Flash and Flex 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

A string that holds the object’s automation name.

See Also

ObjectGroupIndex Property (Flash and Flex Objects)
ObjectIdentifier Property (Flash and Flex Objects)
ObjectLabel Property (Flash and Flex Objects)

Highlight search results