TabCaption Property (Tab Controls)

Applies to TestComplete 15.64, last modified on May 16, 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.


The TabCaption property returns the caption of a tabbed page specified by the Index parameter.



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.


The property has the following parameter:


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.


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