LongTouch Action (Android Objects)

Applies to TestComplete 12.60, last modified on September 17, 2018

Description

Simulates a long touch at the specified point of an object in an Android application (by default, in the object’s center).

Declaration

TestObj.LongTouch(XY)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
X [in]    Optional    Integer Default value: -1   
Y [in]    Optional    Integer Default value: -1   
Result None

Applies To

All Android 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.

Parameters

The method has the following parameters:

X

Specifies the horizontal coordinate (in pixels) of the long touch action. This coordinate is specified relative to the top-left corner of the underlying control. If the coordinate is omitted, the long touch is simulated in the center of the control.

Y

Specifies the vertical coordinate (in pixels) of the long touch action. This coordinate is specified relative to the top-left corner of the underlying control. If the coordinate is omitted, the long touch is simulated in the center of the control.

Result Value

None.

See Also

Testing Android Applications
LongTouch Action (Mobile Objects)
Simulating Basic Touch Actions Over Android Devices
Touch Action (Mobile Objects)

Highlight search results