Working With iOS TabBar Controls

Applies to TestComplete 14.30, last modified on November 21, 2019

TestComplete supports most standard iOS controls, including tab bar controls. To work with iOS tab bar controls in tests, TestComplete provides the iOS TabBar test object.

Note: The described support is available only if the tested iOS application and the computer where TestComplete is running have been prepared for testing in a special way. See Preparing Applications, Devices and Test Computers for iOS Testing.

The supported tab bar classes are listed in the project’s Object Mapping options. You can extend this list. For example, you can add the class name of a custom tab bar used in your tested application, and thus enable the recording and scripting support for this control. For more information, see Object Mapping.

The iOS TabBar object provides access to native properties and methods of the underlying tab bar control. It also provides specific properties and methods that can be used for simulating user actions on tabs and for retrieving their data.

The topics in this section provide detailed information about working with tab bar controls in TestComplete and contain script samples that illustrate the explanation.

In This Section

Selecting Tab Bar Items

Explains how to select a tab bar item of a tab bar control.

Determining the Selected Tab Bar Item

Explains how to determine which tab bar item is currently selected.

Getting Tab Bar Items' Captions

Explains how to get tab bar item captions.

Determining the Number of Tab Bar Items

Explains how to get the number of tab bar items in the tab bar control.

Related Topics of Interest

Testing iOS Applications

Describes the most common approaches for testing iOS applications.

See Also

iOS TabBar Support
Object-Specific Tasks
Supported Controls

Highlight search results