Working With Android Scroll View Controls

Applies to TestComplete 15.40, last modified on March 25, 2022

Scroll view (ScrollView) controls are the container object for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. The user can change visible objects by dragging the control. TestComplete provides extended support for Android scroll view controls.

TestComplete analyzes control class names and automatically creates wrapper Android ScrollView test objects for scroll view controls. These objects contain specific methods and properties for simulating user actions on scroll views and retrieving their data.

Supported scroll 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 scroll view control used in your tested application and thus enable 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 (Legacy)).

Topics in this section provide detailed information about working with scroll view controls in TestComplete and contain script samples that illustrate the explanation.

In This Section

Changing Scroll View Position

Describes how to change the position of the scroll view.

Determining the Minimum and Maximum Scroll Vew Positions

Explains how to obtain the minimum and maximum values of the scroll view.

Determining the Scroll View Position

Explains how to obtain the current position of the scroll view.

Related Topics of Interest

Testing Android Open Applications (Legacy)

Explains the most common approaches to 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 to simulating user actions over controls of Android applications.

See Also

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

Highlight search results