wTabCaption Property (Specific to iOS TabBar Controls)

Applies to TestComplete 15.63, last modified on April 10, 2024
This method is available in legacy mobile tests that work with devices connected to the local computer. To learn how to simulate user actions in newer cloud-compatible mobile tests, see the Simulating user actions in tests section.


The wTabCaption property returns the caption of the 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    Variant    

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:


Specifies the index of the tabbed page whose caption you want to get. The index is zero-based. The total number of tabbed pages in the control is specified by the wTabCount property.

Property Value

A string containing the caption of the specified tabbed page or an empty string, if the specified page is not found.


To view an example that demonstrates how to use the wTabCaption property, see Getting Tab Bar Items' Captions.

See Also

Testing iOS Applications (Legacy)
Getting Tab Bar Items' Captions

Highlight search results