Working With iOS ActionSheet Controls

Applies to TestComplete 14.92, last modified on September 16, 2021

TestComplete supports most standard iOS controls, including action sheet controls. Action sheet controls in iOS applications are typically used to provide a user with a choice among a set of actions to be performed.

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

The iOS ActionSheet object provides access to native properties and methods of the underlying action sheet control. It also provides specific properties and methods that can be used for simulating user actions on action sheets and for retrieving their data.

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

In This Section

Selecting an ActionSheet Control's Item

Explains how to select action sheet items from tests.

Checking an ActionSheet Item's State

Explains how to determine the current state of action sheet items.

Dismissing an ActionSheet Control

Explains how to dismiss an action sheet control without selecting any item.

Related Topics of Interest

Testing iOS Applications (Legacy)

Describes the most common approaches for testing iOS applications.

See Also

iOS ActionSheet Support
Object-Specific Tasks
Supported Controls

Highlight search results