wTabCaption Property (Specific to iOS TabBar Controls)

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

Description

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

Declaration

TestObj.wTabCaption(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    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.

Parameters

The property has the following parameter:

Index

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.

Example

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