ControlIndex Property (Flex Objects)

Applies to TestComplete 15.70, last modified on December 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.

Description

The ControlIndex property returns the object’s index within the parent object’s children collection. This index can be used to uniquely identify the given object.

To get the object’s index among sibling objects of the same type, use the ControlIndexInGroup property.

Declaration

TestObj.ControlIndex

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

This property is applied to all the 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 zero-based integer number that specifies the object’s index.

Note: For invisible objects (Visible = false), the ControlIndex property always returns -1.

See Also

Caption Property (Flash and Flex Objects)
ControlIndexInGroup Property (Flex Objects)
DoDefaultAction Method (Flex Objects)

Highlight search results