Skip to main content

[Mobile] Long Press

Description

Perform a long press action on a mobile element.

Keyword name: Mobile.longPress

Parameters

ParamParam TypeRequiredDescription
toTestObjectYesRepresent a mobile element
timeoutintYesSystem will wait at most timeout (seconds) to return result
flowControlFailureHandlingOptionalSpecify failure handling schema to determine whether the execution should be allowed to continue or stop.

Example

Mobile.longPress(findTestObject('android.widget.Button0 - NEXT'), 0)
Was this page helpful?