Working With iOS Page Controls

Applies to TestComplete 14.20, last modified on September 11, 2019

TestComplete supports most standard iOS controls, including page controls. The page controls in iOS applications display a number of dots that correspond to pages available in the application. A user can navigate through pages in the application by touching the dots of the page control. A dot corresponding to a page currently selected in the page control is highlighted.

To work with iOS page controls in tests, TestComplete provides the iOS PageControl 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 page control 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 page control used in your tested application, and thus enable the recording and scripting support for this control. For more information, see Object Mapping.

The iOS PageControl object provides access to native properties and methods of the underlying page control. It also provides specific properties and methods that can be used for simulating user actions on a page control and for retrieving control data.

The topics of this section provide detailed information on working with page controls in TestComplete and contain sample scripts.

In This Section

Navigating Through Application Pages

Explains how to navigate through application pages by simulating actions on a page control.

Determining the Selected Page

Explains how to check which page in the page control is currently selected.

Determining the Number of Pages

Explains how to determine the total number of pages the page control displays.

Related Topics of Interest

Testing iOS Applications

Describes the most common approaches for testing iOS applications.

See Also

iOS PageControl Support
Object-Specific Tasks
Supported Controls

Highlight search results