TabCaption Property (Tab Controls)

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 TabCaption property returns the caption of a tabbed page specified by the Index parameter.

Declaration

TestObj.TabCaption(Index)

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
Index [in]    Required    Integer    

Applies To

The property is applied to the following object:

View Mode

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

Parameters

The property has the following parameter:

Index

The index of the desired tabbed page. Indexes are zero-based, that is, they range from 0 to TabCount-1.

Property Value

A string holding the caption of the specified tabbed page. If the specified page is not found, TabCaption fails, and TestComplete posts an error message to the test log.

Remarks

If you use Python or DelphiScript, you should enclose the parameter of the TabCaption property in square brackets: TabCaption[Index].

See Also

FocusedTab Property (Tab Controls)
TabCount Property (Tab Controls)
Caption Property (Flash and Flex Objects)

Highlight search results