Act
Tap an element by text label, mark id, or absolute coordinates.
tap(text="Sign In")tap(mark_id=7)tap(x=195, y=480)Swipe between two points (absolute or normalized 0–1 coordinates).
swipe(from_x=200, from_y=600, to_x=200, to_y=200, duration_ms=300)type_text
Section titled “type_text”Type into the currently-focused field via the simulator’s HID input stream.
type_text(text="hello@example.com", clear_first=False)press_key
Section titled “press_key”Send a hardware-style key (home, lock, volume_up/down, return).
press_key(key="home")clear_field
Section titled “clear_field”Clear the focused text field (select-all + delete).
clear_field()dismiss_sheet
Section titled “dismiss_sheet”Dismiss the topmost half-sheet or modal via a swipe-down at the grabber.
dismiss_sheet()