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
Command Example Description longClickById Performs a long click for the given duration on the element which contains the given id selector. DEFAULT : 1000 OPTIONAL DURATION COMPATIBILITY : UNIVERSAL longClickByText Performs a long click for the given duration on the element which contains the given text selector. DEFAULT : 1000 OPTIONAL DURATION COMPATIBILITY : UNIVERSAL longClickByXY Performs a long click of the given duration on the given coordinate. DEFAULT : 1000 COMPATIBILITY : UNIVERSAL clickByText Clicks on the element which contains the given text selector. CASE-SENSITIVE COMPATIBILITY : UNIVERSAL clickByTextExact Clicks on the element which contains the exact given text selector. CASE-SENSITIVE COMPATIBILITY : UNIVERSAL clickByClass Clicks on the element with the given class selector. COMPATIBILITY : UNIVERSAL clickByXY Clicks on the element located at the given coordinates. COMPATIBILITY : UNIVERSAL clickByPercent Clicks on the element located at the coordinates calculated from the given percentages of the device screen. COMPATIBILITY : UNIVERSAL clickById 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 COMPATIBILITY : UNIVERSAL clickByTextForced Clicks on the element which contains the given text if exists COMPATIBILITY : UNIVERSAL Click
longClickById
longClickById,[DURATION]
longClickByText,[TEXT]
longClickByText,[TEXT],[DURATION]
longClickByXY,[X-POS],[Y-POS]
clickByText,[TEXT]
clickByTextExact,[TEXT]
clickByClass,[CLASS]
clickByXY,[X-Pos],[Y-Pos]
clickByPercent,[X-Perc],[Y-Perc]
clickById,[ID]
findByText
or findByTextExact
.clickByTextForced,[TEXT]