TouchButton Action (Mobile Controls)

Applies to TestComplete 15.20, last modified on January 19, 2022
This method is available in legacy mobile tests that work with devices connected to the local computer. To learn how to simulate user actions in newer cloud-compatible mobile tests, see the Simulating user actions in tests section.

Description

The TouchButton action simulates touching a button in a mobile application.

Declaration

TestObj.TouchButton()

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Result None

Applies To

The method is applied to the following objects:

View Mode

This method is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Result Value

None.

Example

To view an example that demonstrates how to use the TouchButton method to simulate touches over buttons in Android and iOS applications, see Touching a Button (Android) and Touching a Button (iOS).

For an example that demonstrates how to use the method to simulate touches over radio buttons in Android and iOS applications, see Selecting a Radio Button (Android) and Selecting a Segment (iOS).

See Also

Testing Android Applications (Legacy)
Testing iOS Applications (Legacy)
Touching a Button
Selecting a Radio Button
Touching a Button
Selecting a Segment
LongTouchButton Action (Android Controls)
LongTouchButton Action (iOS Controls)
Touch Action (Mobile Objects)

Highlight search results