LongTouchCell Action (Android Controls)

Applies to TestComplete 14.70, last modified on April 22, 2021

Description

Use the LongTouchCell action to simulate a long touch on the grid cell in the specified row and column.

Declaration

TestObj.LongTouchCell(RowColumn)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Row [in]    Required    Integer    
Column [in]    Required    Integer    
Result None

Applies To

The method is applied to the following object:

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:

Row

The zero-based index of the row that contains the desired cell. The index is zero-based, that is, the first visible row has index 0, the second - 1, and so on. Index of the last visible row is wRowCount - 1.

Column

Specifies the column (by its index) that contains the desired cell. The index is zero-based, that is, the first column has index 0, the second - 1, and so on. The index of the last column is wColumnCount-1.

Result Value

None.

Remarks

If the specified cell is not found LongTouchCell fails and posts an error message to the log.

Example

To view an example that demonstrates how to use the LongTouchCell action, see Selecting Grid View Cells.

See Also

Testing Android Applications
Selecting Grid View Cells
LongTouch Action (Android Objects)
TouchCell Action (Android Controls)
LongTouchCellXY Action (Android Controls)

Highlight search results