Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »


1 - Introduction

Click commands allow to simulate the finger press on an element by a user. Thanks to its information (id, text, class or position), we can perform different click types.

2 - List of click commands

Click

Command

Example

Description

longClickById

longClickById

longClickById,[DURATION]

Performs a long click for the given duration on the element which contains the given id selector.

DEFAULT : 1000 OPTIONAL DURATION COMPATIBILITY : UNIVERSAL

longClickByText

longClickByText,[TEXT]

longClickByText,[TEXT],[DURATION]

Performs a long click for the given duration on the element which contains the given text selector.

DEFAULT : 1000 OPTIONAL DURATION COMPATIBILITY : UNIVERSAL

longClickByXY

longClickByXY,[X-POS],[Y-POS]

Performs a long click of the given duration on the given coordinate.

DEFAULT : 1000 COMPATIBILITY : UNIVERSAL

clickByText

clickByText,[TEXT]

Clicks on the element which contains the given text selector.

CASE-SENSITIVE COMPATIBILITY : UNIVERSAL

clickByTextExact

clickByTextExact,[TEXT]

Clicks on the element which contains the exact given text selector.

CASE-SENSITIVE COMPATIBILITY : UNIVERSAL

clickByClass

clickByClass,[CLASS]

Clicks on the element with the given class selector.

COMPATIBILITY : UNIVERSAL

clickByXY

clickByXY,[X-Pos],[Y-Pos]

Clicks on the element located at the given coordinates.

COMPATIBILITY : UNIVERSAL

clickByPercent

clickByPercent,[X-Perc],[Y-Perc]

Clicks on the element located at the coordinates calculated from the given percentages of the device screen.

COMPATIBILITY : UNIVERSAL

clickById

clickById,[ID]

Clicks on the element which contains the given identification.

COMPATIBILITY : UNIVERSAL

clickOnLastElementFound

Clicks on the last element found by previous GDSL command in group Find like findByText or findByTextExact.

COMPATIBILITY : UNIVERSAL

clickByTextForced

clickByTextForced,[TEXT]

Clicks on the element which contains the given text if exists

COMPATIBILITY : UNIVERSAL

3 - Use case

  • No labels