@@ -28,21 +28,29 @@ try {
2828
2929The current session object exposes:
3030
31- | Method | Purpose |
32- | -------------- | ----------------------------------------------------------------- |
33- | ` list() ` | Fetch simulator inventory from ` GET /api/simulators ` . |
34- | ` launch() ` | Launch an installed bundle ID. |
35- | ` openUrl() ` | Open a URL or deep link. |
36- | ` tap() ` | Tap normalized screen coordinates. |
37- | ` key() ` | Send one HID key code. |
38- | ` button() ` | Press a hardware button. |
39- | ` tree() ` | Fetch an accessibility hierarchy. |
40- | ` query() ` | Return compact matches for a selector. |
41- | ` waitFor() ` | Poll until a selector appears. |
42- | ` assert() ` | Assert a selector is present. |
43- | ` batch() ` | Run multiple REST actions through ` /api/simulators/{udid}/batch ` . |
44- | ` screenshot() ` | Return a PNG buffer. |
45- | ` close() ` | Stop the daemon if this session started it. |
31+ | Method | Purpose |
32+ | -------------------------------------- | ----------------------------------------------------------------- |
33+ | ` list() ` | Fetch simulator inventory from ` GET /api/simulators ` . |
34+ | ` install() ` , ` uninstall() ` | Install or remove an app. |
35+ | ` launch() ` | Launch an installed bundle ID or Android package. |
36+ | ` openUrl() ` | Open a URL or deep link. |
37+ | ` tap() ` , ` tapElement() ` | Tap normalized coordinates or a matching accessibility element. |
38+ | ` touch() ` , ` swipe() ` , ` gesture() ` | Send normalized pointer gestures. |
39+ | ` typeText() ` , ` key() ` , ` keySequence() ` | Send text or HID keyboard input. |
40+ | ` button() ` | Press a hardware button. |
41+ | ` home() ` , ` dismissKeyboard() ` | Trigger common system controls. |
42+ | ` appSwitcher() ` | Open the app switcher. |
43+ | ` rotateLeft() ` , ` rotateRight() ` | Rotate the simulator display. |
44+ | ` toggleAppearance() ` | Toggle light/dark appearance. |
45+ | ` pasteboardSet() ` , ` pasteboardGet() ` | Read or write pasteboard text. |
46+ | ` chromeProfile() ` | Fetch screen/chrome geometry. |
47+ | ` tree() ` | Fetch an accessibility hierarchy. |
48+ | ` query() ` | Return compact matches for a selector. |
49+ | ` waitFor() ` | Poll until a selector appears. |
50+ | ` assert() ` | Assert a selector is present. |
51+ | ` batch() ` | Run multiple REST actions through ` /api/simulators/{udid}/batch ` . |
52+ | ` screenshot() ` | Return a PNG buffer. |
53+ | ` close() ` | Stop the daemon if this session started it. |
4654
4755Selectors can match ` id ` , ` label ` , ` value ` , or ` type ` . Query options accept ` source ` , ` maxDepth ` , and ` includeHidden ` .
4856
0 commit comments