TouchButton Action (Mobile Controls)

Applies to TestComplete 14.10, last modified on June 5, 2019

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
Testing iOS Applications
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