Touch methods, browser sessions serve 0, phone sessions 3 and computer sessions 0. A method marked not served answers StrategyUnavailable on that kind of session; check the handshake’s capabilities before relying on one.
Touch.tap
Browser: not served
Phone: served
Computer: not served
Tap once at a point. In screen pixels: the phone’s frame, the space screenshots and Screen.observe boxes use.
| Param | Type | Required | Description |
|---|---|---|---|
x | integer | Yes | X coordinate in screen pixels. |
y | integer | Yes | Y coordinate in screen pixels. |
idempotencyKey | string | No | Makes a re-send after a reconnect safe: a repeated key returns the recorded response without acting again. See Idempotency keys. |
{}.
Touch.longPress
Browser: not served
Phone: served
Computer: not served
Press and hold at a point for durationMs. In screen pixels: the phone’s frame, the space screenshots and Screen.observe boxes use.
| Param | Type | Required | Description |
|---|---|---|---|
x | integer | Yes | X coordinate in screen pixels. |
y | integer | Yes | Y coordinate in screen pixels. |
durationMs | integer | Yes | How long to hold, in milliseconds. |
idempotencyKey | string | No | Makes a re-send after a reconnect safe: a repeated key returns the recorded response without acting again. See Idempotency keys. |
{}.
Touch.swipe
Browser: not served
Phone: served
Computer: not served
Swipe from (x1, y1) to (x2, y2) over durationMs. In screen pixels: the phone’s frame, the space screenshots and Screen.observe boxes use.
| Param | Type | Required | Description |
|---|---|---|---|
x1 | integer | Yes | Start X in screen pixels. |
y1 | integer | Yes | Start Y in screen pixels. |
x2 | integer | Yes | End X in screen pixels. |
y2 | integer | Yes | End Y in screen pixels. |
durationMs | integer | Yes | How long the swipe takes, in milliseconds. |
idempotencyKey | string | No | Makes a re-send after a reconnect safe: a repeated key returns the recorded response without acting again. See Idempotency keys. |
{}.