Long Press
long_pressHold an Android UI element to open its context menu or begin a drag; target by ref, text, content description, or x/y coordinates with optional hold time.
Instructions
Long-press an element (e.g. to open a context menu or start a drag).
Targets work like tap(): ref, text/content_desc, or raw x,y
(with image_width/image_height when they come from a scaled screenshot).
ms (hold time, default 800) only applies to the x,y form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ms | No | ||
| ref | No | ||
| text | No | ||
| device | No | ||
| image_width | No | ||
| content_desc | No | ||
| image_height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||