Working With Android Grid View Controls

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

Grid view (GridView) controls are used to display a collection of items in a scrollable grid. A user can navigate in the grid view by touching items, iterating through the items, searching for the value.

TestComplete allows you to create and play back various kinds of user actions on grid view controls and work with their data from scripts.

TestComplete associates grid view controls in the tested application with Android GridView scripting objects by analyzing the application type and the controls’ class names. Supported grid view classes are listed in the project’s Object Mapping options. You can extend this list, for example, add the class name of a custom list view 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.

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

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

Working With Android Grid View Controls - Basic Concepts

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

Selecting Grid View Cells

Explains how you can select grid view items from scripts.

Obtaining Cell Values in Android Grid View Controls

Returns the caption of the specified grid view cell.

Searching for Rows in Android Grid View Controls

Describes how to search for a specific row within grid view.

Iterating Through the Grid View Cells

Explains how to process grid view cells in a loop.

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.

Simulating User Actions Over Android Devices (Legacy)

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

See Also

Android GridView Support
Testing Android Applications (Legacy)
Supported Controls
Default Project Properties - Object Mapping Options

Highlight search results