Working With iOS Slider Controls

Applies to TestComplete 15.63, last modified on April 10, 2024

Slider controls are used to provide visual feedback on the control's value. A user can drag the slider to change its position. TestComplete provides extended support for iOS slider controls.

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.

TestComplete analyzes a control's class names and automatically creates wrapper objects (iOS Slider test objects) for slider controls.

The supported slider 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 slider used in your tested application, and thus enable the recording and scripting support for this control. For more information, see Object Mapping.

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

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

In This Section

Determining Slider Position

Explains how to obtain the current position of the slider.

Determining Minimum and Maximum Slider Positions

Explains how to obtain the minimum and maximum values of the slider.

Changing Slider Position

Describes how to change the position of the slider.

Related Topics of Interest

Testing iOS Applications (Legacy)

Describes the most common approaches for testing iOS applications.

See Also

iOS Slider Support
Object-Specific Tasks
Supported Controls

Highlight search results