[Mobile] Long Press
Description​
Perform a long press action on a mobile element.
Keyword name: Mobile.longPress
Parameters​
| Param | Param Type | Required | Description |
|---|---|---|---|
| to | TestObject | Yes | Represent a mobile element |
| timeout | int | Yes | System will wait at most timeout (seconds) to return result |
| flowControl | FailureHandling | Optional | Specify failure handling schema to determine whether the execution should be allowed to continue or stop. |
Example​
You want to simulate a long press (long tap) action on the NEXT button:
Mobile.longPress(findTestObject('android.widget.Button0 - NEXT'), 0)