Skip to main content

Click Mobile Element

Command description

Click a captured element on the mobile device.

Command Input Parameters

input parametersInput parameter typeDescription
Mobile Device ObjectPhone
Mobile ElementPhoneElement or str (captured element UID, not element name, not ms-rpa-id)Select a captured mobile element or an element returned by Get Mobile Element, Get Similar Mobile Elements, or Get Related Mobile Elements
Click MethodenumSingle Click, Long Press
Click PositionenumRandom, Center
Element Wait TimeoutnumberMaximum time to wait for the element to appear, in seconds; an error is reported when the timeout expires

Command Output Parameters

None

Type definition reference

tip

Enable Developer options on the mobile device, then connect it to the computer with a USB cable. See Connect Mobile Device

FAQ

See Mobile Automation FAQ