Working With Android Spinner Controls

Applies to TestComplete 15.0, last modified on October 22, 2021

TestComplete supports a number of Android controls, including spinner controls. Spinner controls display a set of items and permit the user to make an exclusive choice. The user can navigate within the spinner control and select the needed item.

If the class name of the tested spinner control is listed in the Default Project Properties - Object Mapping Options options of the current project, TestComplete associates it with Android Spinner. If you need to test custom spinner controls, you can add their class names to the Object Mapping list. In this case, they will be associated with the Android Spinner object as well. Specific properties and methods of the Android Spinner object allow you to navigate within a spinner, search for items and retrieve data from the tested spinner control.

The topics of this section provide detailed information on how to work with spinner controls.

Note: Though the following topics deal with scripts, you can use the same approaches while testing applications from your keyword tests. For more information, see Keyword Tests Basic Operations.

In This Section

Selecting Spinner Items

Explains how you can select individual spinner items.

Getting Spinner Items' Text

Explains how to obtain the text of spinner items.

Working With Drop-Down Lists

Explains how you can work with spinners’ drop-down lists.

Related Topics of Interest

Testing Android Open Applications (Legacy)

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

Simulating Gestures (Multi-Touch Events) (Legacy)

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

Working With Android List View Controls

Describes how to perform various actions over list view controls using TestComplete.

Simulating User Actions Over Android Devices (Legacy)

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

See Also

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

Highlight search results