You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Inspect, wait for, accept, or dismiss a platform alert. Use get before acting when the alert content matters; accept and dismiss change the active alert state.',
'Wait for a duration, text, snapshot ref, selector, or stable UI. Use text, ref, or selector for a specific readiness condition; stable waits until the UI stays quiet for the requested window.',
'Read text or accessibility attributes from a snapshot ref or selector without changing the app. Use format text for visible content or attrs for the element attribute map.',
'Check whether a selector satisfies a UI predicate such as visible, hidden, editable, selected, focused, or text. Use wait when the condition may appear asynchronously.',
'Activate a UI target by snapshot ref, selector, or coordinates. Prefer a ref or selector after snapshot; use coordinates only when semantic targeting is unavailable. This can change app state; use settle or snapshot to verify the result.',
'Move input focus to explicit screen coordinates without entering text. Prefer semantic interactions when a snapshot ref or selector is available; use type or fill after focus.',
131
139
positionalArgs: ['x','y'],
132
140
},
133
141
type: {
142
+
helpDescription:
143
+
'Append text to the currently focused input. Use fill when the existing field value should be replaced, and focus first when no input is active.',
134
144
positionalArgs: ['text'],
135
145
allowsExtraPositionals: true,
136
146
allowedFlags: ['delayMs'],
137
147
},
138
148
fill: {
139
149
usageOverride: 'fill <x> <y> <text> | fill <@ref|selector> <text>',
150
+
helpDescription:
151
+
'Replace text in a UI input selected by snapshot ref, selector, or coordinates. Prefer refs or selectors after snapshot; use recordAs to keep sensitive text out of a recorded replay while sending it to the live app.',
Copy file name to clipboardExpand all lines: src/commands/management/app.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,8 @@ const openCliSchema = {
128
128
}asconstsatisfiesCommandSchemaOverride;
129
129
130
130
constcloseCliSchema={
131
+
helpDescription:
132
+
'Close the named app, or close the active session app when app is omitted. Use shutdown only when the selected simulator or emulator should also stop.',
Copy file name to clipboardExpand all lines: src/commands/management/device.ts
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,11 @@ const bootCliSchema = {
53
53
allowedFlags: ['headless'],
54
54
}asconstsatisfiesCommandSchemaOverride;
55
55
56
+
constdevicesCliSchema={
57
+
helpDescription:
58
+
'List available devices and simulators that can be selected for automation. Use platform, device, udid, or serial inputs on later commands to target one result.',
59
+
}asconstsatisfiesCommandSchemaOverride;
60
+
56
61
constcapabilitiesCliSchema={
57
62
summary: 'List supported commands for the selected device',
'Install an app binary from a local path. Provide an app identifier with the path when the target needs explicit app selection; use reinstall to replace an already installed app.',
71
73
positionalArgs: ['appOrPath','path?'],
72
74
}asconstsatisfiesCommandSchemaOverride;
73
75
74
76
constreinstallCliSchema={
77
+
helpDescription:
78
+
'Replace an installed app with a binary from a local path. Use this when preserving the same app identity while installing a new build on the selected device.',
'Run supported React Native automation helpers. Use dismiss-overlay to close a visible development error overlay before continuing normal UI automation.',
Copy file name to clipboardExpand all lines: src/commands/system/index.ts
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -169,9 +169,21 @@ const appStateCliSchema = {
169
169
170
170
constbackCliSchema={
171
171
usageOverride: 'back [--in-app|--system]',
172
+
helpDescription:
173
+
'Navigate back in the app or through system navigation. Use in-app for the app navigation stack and system when the platform back behavior is required.',
172
174
allowedFlags: ['backMode'],
173
175
}asconstsatisfiesCommandSchemaOverride;
174
176
177
+
consthomeCliSchema={
178
+
helpDescription:
179
+
'Send the selected device to its home screen. This leaves the app session open but moves the foreground away from the app.',
180
+
}asconstsatisfiesCommandSchemaOverride;
181
+
182
+
constappSwitcherCliSchema={
183
+
helpDescription:
184
+
'Open the device app switcher to inspect or change foreground apps. This changes the visible system UI and may move focus away from the current app.',
0 commit comments