ObjectLabel Property (Flash and Flex Objects)

Applies to TestComplete 14.61, last modified on April 22, 2021
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.

Description

Use the ObjectLabel property to get the label of an appropriate Flash or Flex control in the application.

Declaration

TestObj.ObjectLabel

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

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Property Value

A string that holds the control’s label. If there is no label specified for the control, ObjectLabel returns an empty string.

See Also

Caption Property (Flash and Flex Objects)

Highlight search results