Skip to content

device_press

Tap a UI element by its @ref from device_snapshot. Supports double-tap, repeated taps, long hold, and post-tap focus settle. Requires an open session.

NameTypeRequiredDefaultConstraintsDescription
refstringYesElement ref from device_snapshot (e.g. “e3” or “@e3”)
doubleTapbooleanNoUse double-tap gesture
countnumberNomin: 1, max: 50, integerRepeat tap N times (for rapid-fire interactions)
holdMsnumberNomin: 0, max: 10000, integerHold duration in ms (for long-press via ref)
waitForFocusMsnumberNomin: 0, max: 5000, integerSleep this many ms after tap to let keyboard focus settle — useful in sequential press+fill flows where focus would otherwise not propagate.
device_press(ref: <string>)