Working With iOS Picker View Controls

Applies to TestComplete 15.48, last modified on March 01, 2023

TestComplete supports most standard iOS controls, including picker view controls. Picker view controls in iOS applications are typically used to provide a user with a set of distinct options to choose.

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

The iOS PickerView object provides access to native properties and methods of the underlying picker view control. It also provides specific properties and methods that can be used for simulating user actions on picker views and for retrieving their data.

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

In This Section

Working With iOS Picker View Controls - Basic Concepts

Describes general principles of working with picker view controls in TestComplete.

Getting Picker View Item Text

Explains how to get the text of a picker view from scripts.

Selecting Picker View Items

Explains how to select picker view items from scripts.

Getting the Selected Picker View Item

Describes how to get the index of the selected picker view item.

Related Topics of Interest

Testing iOS Applications (Legacy)

Describes the most common approaches for testing iOS applications.

See Also

iOS PickerView Support
Testing iOS Applications (Legacy)
Supported Controls

Highlight search results