Working With Android Seek Bar Controls

Applies to TestComplete 14.71, last modified on April 22, 2021

Seek bar (SeekBar) controls are used to provide visual feedback on the control's value. A user can touch or drag the seek bar to change its position. TestComplete provides extended support for Android seek bar controls.

TestComplete analyzes the control class names and automatically creates wrapper Android SeekBar test objects for seek bar controls. These objects contain specific methods and properties for simulating user actions on seek bars and for retrieving their data.

Supported seek bar classes are listed in the project’s Object Mapping options. You can extend this list, for example, add the class name of a custom seek bar control used in your tested application, and thus enable the recording and scripting support for this control. For more information, see Default Project Properties - Object Mapping Options.

Note: The described support is available only if the tested Android application is Open, that is, if it was prepared for TestComplete (see Preparing Android Applications).

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

In This Section

Changing Seek Bar Position

Describes how to change the position of the seek bar.

Determining Minimum and Maximum Seek Bar Positions

Explains how to obtain the minimum and maximum values of the seek bar.

Determining the Seek Bar Position

Explains how to obtain the current position of the seek bar.

Working with Rating Bar Controls

Describes the specifics of working with rating bar controls.

Related Topics of Interest

Testing Android Open Applications

Explains the most common approaches for working with Android Open applications.

Simulating Gestures (Multi-Touch Events)

Contains information on how to simulate multitouch actions in your scripts.

Simulating User Actions Over Android Devices

Explains the most common approaches for simulating user actions over Android applications’ controls.

See Also

Android SeekBar Support
Object-Specific Tasks
Supported Controls
Default Project Properties - Object Mapping Options

Highlight search results