Working With Android Action Bar Controls

Applies to TestComplete 15.69, last modified on November 13, 2024

An action bar is a control at the top of the application where you place --

  • Frequently used tools.

  • Navigation elements.

  • The application's name and icon.

By default, these objects can only be used to work with the corresponding “standard” controls. You can find a list of the supported action bar classes in the project’s Object Mapping options. However, you can also associate a custom action bar control with one of these objects by adding its class name to the Object Mapping list. This will let you record and simulate actions over your custom control using the methods and properties of the associated scripting object. See Object Mapping for more information.

The topics of this section contain detailed information on working with action bar controls in TestComplete and provide sample scripts.

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 Action Bars - Basic Concepts

Describes the general principles of working with action bar controls in TestComplete.

Selecting Action Bar Items

Explains how you can select action bar items from tests.

Checking the Action Bar Items' Type

Explains how you can determine the type of action bar items.

Checking the Action Bar Items' State

Explains how to determine the current state of action bar items.

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 ActionBar Support
About Testing Android Applications (Legacy)
Object-Specific Tasks
Supported Controls

Highlight search results