@poe-platform/safe-bash 0.1.640 → 0.1.642
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/safe-bash/commands/playwright/index.d.ts.map +1 -1
- package/dist/safe-bash/commands/playwright/index.js +9 -1
- package/dist/safe-bash/commands/playwright/index.js.map +1 -1
- package/dist/safe-bash/playwright/abilities.d.ts +40 -0
- package/dist/safe-bash/playwright/abilities.d.ts.map +1 -0
- package/dist/safe-bash/playwright/abilities.js +43 -0
- package/dist/safe-bash/playwright/abilities.js.map +1 -0
- package/dist/safe-bash/playwright/ability-execution.d.ts +10 -0
- package/dist/safe-bash/playwright/ability-execution.d.ts.map +1 -0
- package/dist/safe-bash/playwright/ability-execution.js +126 -0
- package/dist/safe-bash/playwright/ability-execution.js.map +1 -0
- package/dist/safe-bash/playwright/builtins.d.ts +61 -0
- package/dist/safe-bash/playwright/builtins.d.ts.map +1 -0
- package/dist/safe-bash/playwright/builtins.js +23 -0
- package/dist/safe-bash/playwright/builtins.js.map +1 -0
- package/dist/safe-bash/playwright/catalog.d.ts +19 -0
- package/dist/safe-bash/playwright/catalog.d.ts.map +1 -0
- package/dist/safe-bash/playwright/catalog.js +35 -0
- package/dist/safe-bash/playwright/catalog.js.map +1 -0
- package/dist/safe-bash/playwright/command-reference.d.ts +584 -0
- package/dist/safe-bash/playwright/command-reference.d.ts.map +1 -0
- package/dist/safe-bash/playwright/command-reference.js +712 -0
- package/dist/safe-bash/playwright/command-reference.js.map +1 -0
- package/dist/safe-bash/playwright/controller.d.ts +3 -0
- package/dist/safe-bash/playwright/controller.d.ts.map +1 -1
- package/dist/safe-bash/playwright/controller.js +68 -9
- package/dist/safe-bash/playwright/controller.js.map +1 -1
- package/dist/safe-bash/playwright/help.d.ts +3 -60
- package/dist/safe-bash/playwright/help.d.ts.map +1 -1
- package/dist/safe-bash/playwright/help.js +48 -50
- package/dist/safe-bash/playwright/help.js.map +1 -1
- package/dist/safe-bash/playwright/index.d.ts +2 -0
- package/dist/safe-bash/playwright/index.d.ts.map +1 -1
- package/dist/safe-bash/playwright/index.js +1 -0
- package/dist/safe-bash/playwright/index.js.map +1 -1
- package/dist/safe-bash/playwright/invocation.d.ts +6 -4
- package/dist/safe-bash/playwright/invocation.d.ts.map +1 -1
- package/dist/safe-bash/playwright/invocation.js +106 -74
- package/dist/safe-bash/playwright/invocation.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
export declare const playwrightCommandReference: {
|
|
2
|
+
readonly open: {
|
|
3
|
+
readonly help: "playwright-cli open [url]\n\nOpen the browser\n\nArguments:\n [url] the url to navigate to\nOptions:\n --browser browser or chrome channel to use, possible values: chrome, firefox, webkit, msedge.\n --config path to the configuration file, defaults to .playwright/cli.config.json\n --device emulate a specific device, for example \"iphone 15\".\n --headed run browser in headed mode\n --idle-timeout shut the session down after this many milliseconds without a command. defaults to one hour for headless browsers, never for headed ones. pass 0 to disable.\n --mobile emulate a generic mobile device (pixel 10 for chromium, iphone 17 for webkit). mobile pages are usually lighter, which saves tokens.\n --persistent use persistent browser profile\n --profile path to a persistent user data directory.";
|
|
4
|
+
readonly flags: {
|
|
5
|
+
readonly browser: "string";
|
|
6
|
+
readonly config: "string";
|
|
7
|
+
readonly device: "string";
|
|
8
|
+
readonly headed: "boolean";
|
|
9
|
+
readonly "idle-timeout": "string";
|
|
10
|
+
readonly mobile: "boolean";
|
|
11
|
+
readonly persistent: "boolean";
|
|
12
|
+
readonly profile: "string";
|
|
13
|
+
};
|
|
14
|
+
readonly args: readonly ["url"];
|
|
15
|
+
};
|
|
16
|
+
readonly attach: {
|
|
17
|
+
readonly help: "playwright-cli attach [name]\n\nAttach to a running Playwright browser\n\nArguments:\n [name] bound browser name to attach to\nOptions:\n --cdp connect to an existing browser via cdp endpoint url.\n --endpoint playwright browser server endpoint to attach to.\n --extension connect to browser extension, optionally specify browser name (e.g. --extension=chrome)\n --config path to the configuration file, defaults to .playwright/cli.config.json\n --session session name (defaults to bound browser name or \"default\")\n --idle-timeout detach after this many milliseconds without a command. attached browsers are never detached by default.";
|
|
18
|
+
readonly flags: {
|
|
19
|
+
readonly cdp: "string";
|
|
20
|
+
readonly endpoint: "string";
|
|
21
|
+
readonly extension: "string";
|
|
22
|
+
readonly config: "string";
|
|
23
|
+
readonly session: "string";
|
|
24
|
+
readonly "idle-timeout": "string";
|
|
25
|
+
};
|
|
26
|
+
readonly args: readonly ["name"];
|
|
27
|
+
};
|
|
28
|
+
readonly close: {
|
|
29
|
+
readonly help: "playwright-cli close \n\nClose the browser\n";
|
|
30
|
+
readonly flags: {};
|
|
31
|
+
readonly args: readonly [];
|
|
32
|
+
};
|
|
33
|
+
readonly detach: {
|
|
34
|
+
readonly help: "playwright-cli detach \n\nDetach from an attached browser\n";
|
|
35
|
+
readonly flags: {};
|
|
36
|
+
readonly args: readonly [];
|
|
37
|
+
};
|
|
38
|
+
readonly goto: {
|
|
39
|
+
readonly help: "playwright-cli goto <url>\n\nNavigate to a URL\n\nArguments:\n <url> the url to navigate to";
|
|
40
|
+
readonly flags: {};
|
|
41
|
+
readonly args: readonly ["url"];
|
|
42
|
+
};
|
|
43
|
+
readonly type: {
|
|
44
|
+
readonly help: "playwright-cli type <text>\n\nType text into editable element\n\nArguments:\n <text> text to type into the element\nOptions:\n --submit whether to submit entered text (press enter after)";
|
|
45
|
+
readonly flags: {
|
|
46
|
+
readonly submit: "boolean";
|
|
47
|
+
};
|
|
48
|
+
readonly args: readonly ["text"];
|
|
49
|
+
};
|
|
50
|
+
readonly click: {
|
|
51
|
+
readonly help: "playwright-cli click <target> [button]\n\nPerform click on a web page\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector\n [button] button to click, defaults to left\nOptions:\n --modifiers modifier key to press (repeatable)";
|
|
52
|
+
readonly flags: {
|
|
53
|
+
readonly modifiers: "string";
|
|
54
|
+
};
|
|
55
|
+
readonly args: readonly ["target", "button"];
|
|
56
|
+
};
|
|
57
|
+
readonly dblclick: {
|
|
58
|
+
readonly help: "playwright-cli dblclick <target> [button]\n\nPerform double click on a web page\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector\n [button] button to click, defaults to left\nOptions:\n --modifiers modifier key to press (repeatable)";
|
|
59
|
+
readonly flags: {
|
|
60
|
+
readonly modifiers: "string";
|
|
61
|
+
};
|
|
62
|
+
readonly args: readonly ["target", "button"];
|
|
63
|
+
};
|
|
64
|
+
readonly fill: {
|
|
65
|
+
readonly help: "playwright-cli fill <target> <text>\n\nFill text into editable element\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector\n <text> text to fill into the element\nOptions:\n --submit whether to submit entered text (press enter after)";
|
|
66
|
+
readonly flags: {
|
|
67
|
+
readonly submit: "boolean";
|
|
68
|
+
};
|
|
69
|
+
readonly args: readonly ["target", "text"];
|
|
70
|
+
};
|
|
71
|
+
readonly drag: {
|
|
72
|
+
readonly help: "playwright-cli drag <startTarget> <endTarget>\n\nPerform drag and drop between two elements\n\nArguments:\n <startTarget> exact source element reference from the page snapshot, or a unique element selector\n <endTarget> exact target element reference from the page snapshot, or a unique element selector";
|
|
73
|
+
readonly flags: {};
|
|
74
|
+
readonly args: readonly ["startTarget", "endTarget"];
|
|
75
|
+
};
|
|
76
|
+
readonly drop: {
|
|
77
|
+
readonly help: "playwright-cli drop <target>\n\nDrop files or data onto an element\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector\nOptions:\n --path absolute path to a file to drop onto the element (repeatable)\n --data data to drop in \"mime/type=value\" format, e.g. --data \"text/plain=hello\" (repeatable)";
|
|
78
|
+
readonly flags: {
|
|
79
|
+
readonly path: "string";
|
|
80
|
+
readonly data: "string";
|
|
81
|
+
};
|
|
82
|
+
readonly args: readonly ["target"];
|
|
83
|
+
};
|
|
84
|
+
readonly hover: {
|
|
85
|
+
readonly help: "playwright-cli hover <target>\n\nHover over element on page\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector";
|
|
86
|
+
readonly flags: {};
|
|
87
|
+
readonly args: readonly ["target"];
|
|
88
|
+
};
|
|
89
|
+
readonly select: {
|
|
90
|
+
readonly help: "playwright-cli select <target> <val>\n\nSelect an option in a dropdown\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector\n <val> value to select in the dropdown";
|
|
91
|
+
readonly flags: {};
|
|
92
|
+
readonly args: readonly ["target", "val"];
|
|
93
|
+
};
|
|
94
|
+
readonly upload: {
|
|
95
|
+
readonly help: "playwright-cli upload <files...>\n\nUpload one or multiple files\n\nArguments:\n <files...> the absolute paths to the files to upload";
|
|
96
|
+
readonly flags: {};
|
|
97
|
+
readonly args: readonly ["files"];
|
|
98
|
+
readonly variadicArg: true;
|
|
99
|
+
};
|
|
100
|
+
readonly check: {
|
|
101
|
+
readonly help: "playwright-cli check <target>\n\nCheck a checkbox or radio button\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector";
|
|
102
|
+
readonly flags: {};
|
|
103
|
+
readonly args: readonly ["target"];
|
|
104
|
+
};
|
|
105
|
+
readonly uncheck: {
|
|
106
|
+
readonly help: "playwright-cli uncheck <target>\n\nUncheck a checkbox or radio button\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector";
|
|
107
|
+
readonly flags: {};
|
|
108
|
+
readonly args: readonly ["target"];
|
|
109
|
+
};
|
|
110
|
+
readonly snapshot: {
|
|
111
|
+
readonly help: "playwright-cli snapshot [target]\n\nCapture page snapshot to obtain element ref\n\nArguments:\n [target] element reference from the previous page snapshot, or a unique element selector for the root element to capture a partial snapshot instead of the whole page\nOptions:\n --filename save snapshot to markdown file instead of returning it in the response.\n --depth limit snapshot depth, unlimited by default.\n --boxes include each element's bounding box as [box=x,y,width,height] in the snapshot. coordinates are viewport-relative, in css pixels (element.getboundingclientrect).";
|
|
112
|
+
readonly flags: {
|
|
113
|
+
readonly filename: "string";
|
|
114
|
+
readonly depth: "string";
|
|
115
|
+
readonly boxes: "boolean";
|
|
116
|
+
};
|
|
117
|
+
readonly args: readonly ["target"];
|
|
118
|
+
};
|
|
119
|
+
readonly find: {
|
|
120
|
+
readonly help: "playwright-cli find [text]\n\nSearch the page snapshot for text or a regexp, returning matching nodes with surrounding context (like search snippets)\n\nArguments:\n [text] plain text to search for in the page snapshot (case-insensitive substring match)\nOptions:\n --regex regular expression to search for in the page snapshot. provide either a text argument or --regex, not both.";
|
|
121
|
+
readonly flags: {
|
|
122
|
+
readonly regex: "string";
|
|
123
|
+
};
|
|
124
|
+
readonly args: readonly ["text"];
|
|
125
|
+
};
|
|
126
|
+
readonly eval: {
|
|
127
|
+
readonly help: "playwright-cli eval <func> [target]\n\nEvaluate JavaScript expression on page or element\n\nArguments:\n <func> () => { /* code */ } or (element) => { /* code */ } when element is provided\n [target] exact target element reference from the page snapshot, or a unique element selector\nOptions:\n --filename save evaluation result to a file instead of returning it in the response.";
|
|
128
|
+
readonly flags: {
|
|
129
|
+
readonly filename: "string";
|
|
130
|
+
};
|
|
131
|
+
readonly args: readonly ["func", "target"];
|
|
132
|
+
};
|
|
133
|
+
readonly console: {
|
|
134
|
+
readonly help: "playwright-cli console [min-level]\n\nList console messages\n\nArguments:\n [min-level] level of the console messages to return. each level includes the messages of more severe levels. defaults to \"info\".\nOptions:\n --clear whether to clear the console list";
|
|
135
|
+
readonly flags: {
|
|
136
|
+
readonly clear: "boolean";
|
|
137
|
+
};
|
|
138
|
+
readonly args: readonly ["min-level"];
|
|
139
|
+
};
|
|
140
|
+
readonly "dialog-accept": {
|
|
141
|
+
readonly help: "playwright-cli dialog-accept [prompt]\n\nAccept a dialog\n\nArguments:\n [prompt] the text of the prompt in case of a prompt dialog.";
|
|
142
|
+
readonly flags: {};
|
|
143
|
+
readonly args: readonly ["prompt"];
|
|
144
|
+
};
|
|
145
|
+
readonly "dialog-dismiss": {
|
|
146
|
+
readonly help: "playwright-cli dialog-dismiss \n\nDismiss a dialog\n";
|
|
147
|
+
readonly flags: {};
|
|
148
|
+
readonly args: readonly [];
|
|
149
|
+
};
|
|
150
|
+
readonly resize: {
|
|
151
|
+
readonly help: "playwright-cli resize <w> <h>\n\nResize the browser window\n\nArguments:\n <w> width of the browser window\n <h> height of the browser window";
|
|
152
|
+
readonly flags: {};
|
|
153
|
+
readonly args: readonly ["w", "h"];
|
|
154
|
+
};
|
|
155
|
+
readonly "run-code": {
|
|
156
|
+
readonly help: "playwright-cli run-code [code]\n\nRun Playwright code snippet\n\nArguments:\n [code] a javascript function containing playwright code to execute. it will be invoked with a single argument, page, which you can use for any page interaction.\nOptions:\n --filename load code from the specified file.";
|
|
157
|
+
readonly flags: {
|
|
158
|
+
readonly filename: "string";
|
|
159
|
+
};
|
|
160
|
+
readonly args: readonly ["code"];
|
|
161
|
+
};
|
|
162
|
+
readonly "delete-data": {
|
|
163
|
+
readonly help: "playwright-cli delete-data \n\nDelete session data\n";
|
|
164
|
+
readonly flags: {};
|
|
165
|
+
readonly args: readonly [];
|
|
166
|
+
};
|
|
167
|
+
readonly "go-back": {
|
|
168
|
+
readonly help: "playwright-cli go-back \n\nGo back to the previous page\n";
|
|
169
|
+
readonly flags: {};
|
|
170
|
+
readonly args: readonly [];
|
|
171
|
+
};
|
|
172
|
+
readonly "go-forward": {
|
|
173
|
+
readonly help: "playwright-cli go-forward \n\nGo forward to the next page\n";
|
|
174
|
+
readonly flags: {};
|
|
175
|
+
readonly args: readonly [];
|
|
176
|
+
};
|
|
177
|
+
readonly reload: {
|
|
178
|
+
readonly help: "playwright-cli reload \n\nReload the current page\n";
|
|
179
|
+
readonly flags: {};
|
|
180
|
+
readonly args: readonly [];
|
|
181
|
+
};
|
|
182
|
+
readonly press: {
|
|
183
|
+
readonly help: "playwright-cli press <key>\n\nPress a key on the keyboard, `a`, `ArrowLeft`\n\nArguments:\n <key> name of the key to press or a character to generate, such as `arrowleft` or `a`";
|
|
184
|
+
readonly flags: {};
|
|
185
|
+
readonly args: readonly ["key"];
|
|
186
|
+
};
|
|
187
|
+
readonly keydown: {
|
|
188
|
+
readonly help: "playwright-cli keydown <key>\n\nPress a key down on the keyboard\n\nArguments:\n <key> name of the key to press or a character to generate, such as `arrowleft` or `a`";
|
|
189
|
+
readonly flags: {};
|
|
190
|
+
readonly args: readonly ["key"];
|
|
191
|
+
};
|
|
192
|
+
readonly keyup: {
|
|
193
|
+
readonly help: "playwright-cli keyup <key>\n\nPress a key up on the keyboard\n\nArguments:\n <key> name of the key to press or a character to generate, such as `arrowleft` or `a`";
|
|
194
|
+
readonly flags: {};
|
|
195
|
+
readonly args: readonly ["key"];
|
|
196
|
+
};
|
|
197
|
+
readonly mousemove: {
|
|
198
|
+
readonly help: "playwright-cli mousemove <x> <y>\n\nMove mouse to a given position\n\nArguments:\n <x> x coordinate\n <y> y coordinate";
|
|
199
|
+
readonly flags: {};
|
|
200
|
+
readonly args: readonly ["x", "y"];
|
|
201
|
+
};
|
|
202
|
+
readonly mousedown: {
|
|
203
|
+
readonly help: "playwright-cli mousedown [button]\n\nPress mouse down\n\nArguments:\n [button] button to press, defaults to left";
|
|
204
|
+
readonly flags: {};
|
|
205
|
+
readonly args: readonly ["button"];
|
|
206
|
+
};
|
|
207
|
+
readonly mouseup: {
|
|
208
|
+
readonly help: "playwright-cli mouseup [button]\n\nPress mouse up\n\nArguments:\n [button] button to press, defaults to left";
|
|
209
|
+
readonly flags: {};
|
|
210
|
+
readonly args: readonly ["button"];
|
|
211
|
+
};
|
|
212
|
+
readonly mousewheel: {
|
|
213
|
+
readonly help: "playwright-cli mousewheel <dx> <dy>\n\nScroll mouse wheel\n\nArguments:\n <dx> x delta\n <dy> y delta";
|
|
214
|
+
readonly flags: {};
|
|
215
|
+
readonly args: readonly ["dx", "dy"];
|
|
216
|
+
};
|
|
217
|
+
readonly screenshot: {
|
|
218
|
+
readonly help: "playwright-cli screenshot [target]\n\nscreenshot of the current page or element\n\nArguments:\n [target] exact target element reference from the page snapshot, or a unique element selector\nOptions:\n --filename file name to save the screenshot to. defaults to `page-{timestamp}.{png|jpeg|webp}` if not specified.\n --type image format. if unset, inferred from the filename extension, otherwise png. (one of: png, jpeg, webp)\n --full-page when true, takes a screenshot of the full scrollable page, instead of the currently visible viewport.\n --hires when true, captures a high-resolution screenshot using device pixels (accounts for the device pixel ratio), instead of css pixels.";
|
|
219
|
+
readonly flags: {
|
|
220
|
+
readonly filename: "string";
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
readonly "full-page": "boolean";
|
|
223
|
+
readonly hires: "boolean";
|
|
224
|
+
};
|
|
225
|
+
readonly args: readonly ["target"];
|
|
226
|
+
};
|
|
227
|
+
readonly pdf: {
|
|
228
|
+
readonly help: "playwright-cli pdf \n\nSave page as PDF\n\nOptions:\n --filename file name to save the pdf to. defaults to `page-{timestamp}.pdf` if not specified.";
|
|
229
|
+
readonly flags: {
|
|
230
|
+
readonly filename: "string";
|
|
231
|
+
};
|
|
232
|
+
readonly args: readonly [];
|
|
233
|
+
};
|
|
234
|
+
readonly "tab-list": {
|
|
235
|
+
readonly help: "playwright-cli tab-list \n\nList all tabs\n";
|
|
236
|
+
readonly flags: {};
|
|
237
|
+
readonly args: readonly [];
|
|
238
|
+
};
|
|
239
|
+
readonly "tab-new": {
|
|
240
|
+
readonly help: "playwright-cli tab-new [url]\n\nCreate a new tab\n\nArguments:\n [url] the url to navigate to in the new tab. if omitted, the new tab will be blank.";
|
|
241
|
+
readonly flags: {};
|
|
242
|
+
readonly args: readonly ["url"];
|
|
243
|
+
};
|
|
244
|
+
readonly "tab-close": {
|
|
245
|
+
readonly help: "playwright-cli tab-close [index]\n\nClose a browser tab\n\nArguments:\n [index] tab index. if omitted, current tab is closed.";
|
|
246
|
+
readonly flags: {};
|
|
247
|
+
readonly args: readonly ["index"];
|
|
248
|
+
};
|
|
249
|
+
readonly "tab-select": {
|
|
250
|
+
readonly help: "playwright-cli tab-select <index>\n\nSelect a browser tab\n\nArguments:\n <index> tab index";
|
|
251
|
+
readonly flags: {};
|
|
252
|
+
readonly args: readonly ["index"];
|
|
253
|
+
};
|
|
254
|
+
readonly "state-load": {
|
|
255
|
+
readonly help: "playwright-cli state-load <filename>\n\nLoads browser storage (authentication) state from a file\n\nArguments:\n <filename> file name to load the storage state from.";
|
|
256
|
+
readonly flags: {};
|
|
257
|
+
readonly args: readonly ["filename"];
|
|
258
|
+
};
|
|
259
|
+
readonly "state-save": {
|
|
260
|
+
readonly help: "playwright-cli state-save [filename]\n\nSaves the current storage (authentication) state to a file\n\nArguments:\n [filename] file name to save the storage state to.";
|
|
261
|
+
readonly flags: {};
|
|
262
|
+
readonly args: readonly ["filename"];
|
|
263
|
+
};
|
|
264
|
+
readonly "cookie-list": {
|
|
265
|
+
readonly help: "playwright-cli cookie-list \n\nList all cookies (optionally filtered by domain/path)\n\nOptions:\n --domain filter cookies by domain\n --path filter cookies by path";
|
|
266
|
+
readonly flags: {
|
|
267
|
+
readonly domain: "string";
|
|
268
|
+
readonly path: "string";
|
|
269
|
+
};
|
|
270
|
+
readonly args: readonly [];
|
|
271
|
+
readonly raw: true;
|
|
272
|
+
};
|
|
273
|
+
readonly "cookie-get": {
|
|
274
|
+
readonly help: "playwright-cli cookie-get <name>\n\nGet a specific cookie by name\n\nArguments:\n <name> cookie name";
|
|
275
|
+
readonly flags: {};
|
|
276
|
+
readonly args: readonly ["name"];
|
|
277
|
+
readonly raw: true;
|
|
278
|
+
};
|
|
279
|
+
readonly "cookie-set": {
|
|
280
|
+
readonly help: "playwright-cli cookie-set <name> <value>\n\nSet a cookie with optional flags\n\nArguments:\n <name> cookie name\n <value> cookie value\nOptions:\n --domain cookie domain\n --path cookie path\n --expires cookie expiration as unix timestamp\n --httpOnly whether the cookie is http only\n --secure whether the cookie is secure\n --sameSite cookie samesite attribute (one of: Strict, Lax, None)";
|
|
281
|
+
readonly flags: {
|
|
282
|
+
readonly domain: "string";
|
|
283
|
+
readonly path: "string";
|
|
284
|
+
readonly expires: "string";
|
|
285
|
+
readonly httpOnly: "boolean";
|
|
286
|
+
readonly secure: "boolean";
|
|
287
|
+
readonly sameSite: "string";
|
|
288
|
+
};
|
|
289
|
+
readonly args: readonly ["name", "value"];
|
|
290
|
+
};
|
|
291
|
+
readonly "cookie-delete": {
|
|
292
|
+
readonly help: "playwright-cli cookie-delete <name>\n\nDelete a specific cookie\n\nArguments:\n <name> cookie name";
|
|
293
|
+
readonly flags: {};
|
|
294
|
+
readonly args: readonly ["name"];
|
|
295
|
+
};
|
|
296
|
+
readonly "cookie-clear": {
|
|
297
|
+
readonly help: "playwright-cli cookie-clear \n\nClear all cookies\n";
|
|
298
|
+
readonly flags: {};
|
|
299
|
+
readonly args: readonly [];
|
|
300
|
+
};
|
|
301
|
+
readonly "localstorage-list": {
|
|
302
|
+
readonly help: "playwright-cli localstorage-list \n\nList all localStorage key-value pairs\n";
|
|
303
|
+
readonly flags: {};
|
|
304
|
+
readonly args: readonly [];
|
|
305
|
+
readonly raw: true;
|
|
306
|
+
};
|
|
307
|
+
readonly "localstorage-get": {
|
|
308
|
+
readonly help: "playwright-cli localstorage-get <key>\n\nGet a localStorage item by key\n\nArguments:\n <key> key to get";
|
|
309
|
+
readonly flags: {};
|
|
310
|
+
readonly args: readonly ["key"];
|
|
311
|
+
readonly raw: true;
|
|
312
|
+
};
|
|
313
|
+
readonly "localstorage-set": {
|
|
314
|
+
readonly help: "playwright-cli localstorage-set <key> <value>\n\nSet a localStorage item\n\nArguments:\n <key> key to set\n <value> value to set";
|
|
315
|
+
readonly flags: {};
|
|
316
|
+
readonly args: readonly ["key", "value"];
|
|
317
|
+
};
|
|
318
|
+
readonly "localstorage-delete": {
|
|
319
|
+
readonly help: "playwright-cli localstorage-delete <key>\n\nDelete a localStorage item\n\nArguments:\n <key> key to delete";
|
|
320
|
+
readonly flags: {};
|
|
321
|
+
readonly args: readonly ["key"];
|
|
322
|
+
};
|
|
323
|
+
readonly "localstorage-clear": {
|
|
324
|
+
readonly help: "playwright-cli localstorage-clear \n\nClear all localStorage\n";
|
|
325
|
+
readonly flags: {};
|
|
326
|
+
readonly args: readonly [];
|
|
327
|
+
};
|
|
328
|
+
readonly "sessionstorage-list": {
|
|
329
|
+
readonly help: "playwright-cli sessionstorage-list \n\nList all sessionStorage key-value pairs\n";
|
|
330
|
+
readonly flags: {};
|
|
331
|
+
readonly args: readonly [];
|
|
332
|
+
readonly raw: true;
|
|
333
|
+
};
|
|
334
|
+
readonly "sessionstorage-get": {
|
|
335
|
+
readonly help: "playwright-cli sessionstorage-get <key>\n\nGet a sessionStorage item by key\n\nArguments:\n <key> key to get";
|
|
336
|
+
readonly flags: {};
|
|
337
|
+
readonly args: readonly ["key"];
|
|
338
|
+
readonly raw: true;
|
|
339
|
+
};
|
|
340
|
+
readonly "sessionstorage-set": {
|
|
341
|
+
readonly help: "playwright-cli sessionstorage-set <key> <value>\n\nSet a sessionStorage item\n\nArguments:\n <key> key to set\n <value> value to set";
|
|
342
|
+
readonly flags: {};
|
|
343
|
+
readonly args: readonly ["key", "value"];
|
|
344
|
+
};
|
|
345
|
+
readonly "sessionstorage-delete": {
|
|
346
|
+
readonly help: "playwright-cli sessionstorage-delete <key>\n\nDelete a sessionStorage item\n\nArguments:\n <key> key to delete";
|
|
347
|
+
readonly flags: {};
|
|
348
|
+
readonly args: readonly ["key"];
|
|
349
|
+
};
|
|
350
|
+
readonly "sessionstorage-clear": {
|
|
351
|
+
readonly help: "playwright-cli sessionstorage-clear \n\nClear all sessionStorage\n";
|
|
352
|
+
readonly flags: {};
|
|
353
|
+
readonly args: readonly [];
|
|
354
|
+
};
|
|
355
|
+
readonly requests: {
|
|
356
|
+
readonly help: "playwright-cli requests \n\nList all network requests since loading the page. Each request is numbered for use with the `request` command.\n\nOptions:\n --static whether to include successful static resources like images, fonts, scripts, etc. defaults to false.\n --filter only return requests whose url matches this regexp (e.g. \"/api/.*user\").\n --clear whether to clear the network list";
|
|
357
|
+
readonly flags: {
|
|
358
|
+
readonly static: "boolean";
|
|
359
|
+
readonly filter: "string";
|
|
360
|
+
readonly clear: "boolean";
|
|
361
|
+
};
|
|
362
|
+
readonly args: readonly [];
|
|
363
|
+
};
|
|
364
|
+
readonly request: {
|
|
365
|
+
readonly help: "playwright-cli request <index>\n\nShow full details (headers, body, response) of a single network request by its number from the `requests` command.\n\nArguments:\n <index> 1-based number of the request as listed by `requests`\nOptions:\n --filename filename to save the result to. if not provided, output is returned as text.";
|
|
366
|
+
readonly flags: {
|
|
367
|
+
readonly filename: "string";
|
|
368
|
+
};
|
|
369
|
+
readonly args: readonly ["index"];
|
|
370
|
+
};
|
|
371
|
+
readonly "request-headers": {
|
|
372
|
+
readonly help: "playwright-cli request-headers <index>\n\nPrint only the request headers for a single network request by its number from the `requests` command.\n\nArguments:\n <index> 1-based number of the request as listed by `requests`\nOptions:\n --filename filename to save the result to. if not provided, output is returned as text.";
|
|
373
|
+
readonly flags: {
|
|
374
|
+
readonly filename: "string";
|
|
375
|
+
};
|
|
376
|
+
readonly args: readonly ["index"];
|
|
377
|
+
readonly raw: true;
|
|
378
|
+
};
|
|
379
|
+
readonly "request-body": {
|
|
380
|
+
readonly help: "playwright-cli request-body <index>\n\nPrint only the request body for a single network request by its number from the `requests` command.\n\nArguments:\n <index> 1-based number of the request as listed by `requests`\nOptions:\n --filename filename to save the result to. if not provided, output is returned as text.";
|
|
381
|
+
readonly flags: {
|
|
382
|
+
readonly filename: "string";
|
|
383
|
+
};
|
|
384
|
+
readonly args: readonly ["index"];
|
|
385
|
+
readonly raw: true;
|
|
386
|
+
};
|
|
387
|
+
readonly "response-headers": {
|
|
388
|
+
readonly help: "playwright-cli response-headers <index>\n\nPrint only the response headers for a single network request by its number from the `requests` command.\n\nArguments:\n <index> 1-based number of the request as listed by `requests`\nOptions:\n --filename filename to save the result to. if not provided, output is returned as text.";
|
|
389
|
+
readonly flags: {
|
|
390
|
+
readonly filename: "string";
|
|
391
|
+
};
|
|
392
|
+
readonly args: readonly ["index"];
|
|
393
|
+
readonly raw: true;
|
|
394
|
+
};
|
|
395
|
+
readonly "response-body": {
|
|
396
|
+
readonly help: "playwright-cli response-body <index>\n\nPrint the response body for a single network request by its number from the `requests` command. Textual bodies are inlined; binary bodies are saved to a file and the path is printed.\n\nArguments:\n <index> 1-based number of the request as listed by `requests`\nOptions:\n --filename filename to save the result to. if not provided, output is returned as text.";
|
|
397
|
+
readonly flags: {
|
|
398
|
+
readonly filename: "string";
|
|
399
|
+
};
|
|
400
|
+
readonly args: readonly ["index"];
|
|
401
|
+
readonly raw: true;
|
|
402
|
+
};
|
|
403
|
+
readonly route: {
|
|
404
|
+
readonly help: "playwright-cli route <pattern>\n\nMock network requests matching a URL pattern\n\nArguments:\n <pattern> url pattern to match (e.g., \"**/api/users\")\nOptions:\n --status http status code (default: 200)\n --body response body (text or json string)\n --content-type content-type header\n --header header to add in \"name: value\" format (repeatable)\n --remove-header comma-separated header names to remove";
|
|
405
|
+
readonly flags: {
|
|
406
|
+
readonly status: "string";
|
|
407
|
+
readonly body: "string";
|
|
408
|
+
readonly "content-type": "string";
|
|
409
|
+
readonly header: "string";
|
|
410
|
+
readonly "remove-header": "string";
|
|
411
|
+
};
|
|
412
|
+
readonly args: readonly ["pattern"];
|
|
413
|
+
};
|
|
414
|
+
readonly "route-list": {
|
|
415
|
+
readonly help: "playwright-cli route-list \n\nList all active network routes\n";
|
|
416
|
+
readonly flags: {};
|
|
417
|
+
readonly args: readonly [];
|
|
418
|
+
readonly raw: true;
|
|
419
|
+
};
|
|
420
|
+
readonly unroute: {
|
|
421
|
+
readonly help: "playwright-cli unroute [pattern]\n\nRemove routes matching a pattern (or all routes)\n\nArguments:\n [pattern] url pattern to unroute (omit to remove all)";
|
|
422
|
+
readonly flags: {};
|
|
423
|
+
readonly args: readonly ["pattern"];
|
|
424
|
+
};
|
|
425
|
+
readonly "network-state-set": {
|
|
426
|
+
readonly help: "playwright-cli network-state-set <state>\n\nSet the browser network state to online or offline\n\nArguments:\n <state> set to \"offline\" to simulate offline mode, \"online\" to restore network connectivity";
|
|
427
|
+
readonly flags: {};
|
|
428
|
+
readonly args: readonly ["state"];
|
|
429
|
+
};
|
|
430
|
+
readonly "config-print": {
|
|
431
|
+
readonly help: "playwright-cli config-print \n\nPrint the final resolved config after merging CLI options, environment variables and config file.\n";
|
|
432
|
+
readonly flags: {};
|
|
433
|
+
readonly args: readonly [];
|
|
434
|
+
};
|
|
435
|
+
readonly install: {
|
|
436
|
+
readonly help: "playwright-cli install \n\nInitialize workspace\n\nOptions:\n --skills install skills, possible values: claude (default), agents.\n --global install skills into the home directory instead of the workspace (alias: -g). requires --skills.";
|
|
437
|
+
readonly flags: {
|
|
438
|
+
readonly skills: "string";
|
|
439
|
+
readonly global: "boolean";
|
|
440
|
+
};
|
|
441
|
+
readonly args: readonly [];
|
|
442
|
+
};
|
|
443
|
+
readonly "install-browser": {
|
|
444
|
+
readonly help: "playwright-cli install-browser [browser]\n\nInstall browser\n\nArguments:\n [browser] browser to install\nOptions:\n --with-deps install system dependencies for browsers\n --dry-run do not execute installation, only print information\n --list prints list of browsers from all playwright installations\n --force force reinstall of already installed browsers\n --only-shell only install headless shell when installing chromium\n --no-shell do not install chromium headless shell";
|
|
445
|
+
readonly flags: {
|
|
446
|
+
readonly "with-deps": "boolean";
|
|
447
|
+
readonly "dry-run": "boolean";
|
|
448
|
+
readonly list: "boolean";
|
|
449
|
+
readonly force: "boolean";
|
|
450
|
+
readonly "only-shell": "boolean";
|
|
451
|
+
readonly "no-shell": "boolean";
|
|
452
|
+
};
|
|
453
|
+
readonly args: readonly ["browser"];
|
|
454
|
+
};
|
|
455
|
+
readonly "recording-start": {
|
|
456
|
+
readonly help: "playwright-cli recording-start \n\nStart recording user actions\n";
|
|
457
|
+
readonly flags: {};
|
|
458
|
+
readonly args: readonly [];
|
|
459
|
+
};
|
|
460
|
+
readonly "recording-stop": {
|
|
461
|
+
readonly help: "playwright-cli recording-stop \n\nStop recording user actions and print them as Playwright code\n";
|
|
462
|
+
readonly flags: {};
|
|
463
|
+
readonly args: readonly [];
|
|
464
|
+
};
|
|
465
|
+
readonly "tracing-start": {
|
|
466
|
+
readonly help: "playwright-cli tracing-start \n\nStart trace recording\n";
|
|
467
|
+
readonly flags: {};
|
|
468
|
+
readonly args: readonly [];
|
|
469
|
+
};
|
|
470
|
+
readonly "tracing-stop": {
|
|
471
|
+
readonly help: "playwright-cli tracing-stop \n\nStop trace recording\n";
|
|
472
|
+
readonly flags: {};
|
|
473
|
+
readonly args: readonly [];
|
|
474
|
+
};
|
|
475
|
+
readonly "video-start": {
|
|
476
|
+
readonly help: "playwright-cli video-start [filename]\n\nStart video recording\n\nArguments:\n [filename] filename to save the video.\nOptions:\n --size video frame size, e.g. \"800x600\". if not specified, the size of the recorded video will fit 800x800.";
|
|
477
|
+
readonly flags: {
|
|
478
|
+
readonly size: "string";
|
|
479
|
+
};
|
|
480
|
+
readonly args: readonly ["filename"];
|
|
481
|
+
};
|
|
482
|
+
readonly "video-stop": {
|
|
483
|
+
readonly help: "playwright-cli video-stop \n\nStop video recording\n";
|
|
484
|
+
readonly flags: {};
|
|
485
|
+
readonly args: readonly [];
|
|
486
|
+
};
|
|
487
|
+
readonly "video-chapter": {
|
|
488
|
+
readonly help: "playwright-cli video-chapter <title>\n\nAdd a chapter marker to the video recording\n\nArguments:\n <title> chapter title.\nOptions:\n --description chapter description.\n --duration duration in milliseconds to show the chapter card.";
|
|
489
|
+
readonly flags: {
|
|
490
|
+
readonly description: "string";
|
|
491
|
+
readonly duration: "string";
|
|
492
|
+
};
|
|
493
|
+
readonly args: readonly ["title"];
|
|
494
|
+
};
|
|
495
|
+
readonly "video-show-actions": {
|
|
496
|
+
readonly help: "playwright-cli video-show-actions \n\nAnnotate subsequent CLI/MCP actions on the page with a callout that names the action and highlights the target element\n\nOptions:\n --duration how long each action annotation stays on screen, in milliseconds. defaults to 500.\n --position where to place the action title: top-left, top, top-right, bottom-left, bottom, bottom-right. defaults to top-right. (one of: top-left, top, top-right, bottom-left, bottom, bottom-right)\n --cursor cursor decoration: \"pointer\" (default) animates a mouse pointer between action points; \"none\" disables it. (one of: none, pointer)";
|
|
497
|
+
readonly flags: {
|
|
498
|
+
readonly duration: "string";
|
|
499
|
+
readonly position: "string";
|
|
500
|
+
readonly cursor: "string";
|
|
501
|
+
};
|
|
502
|
+
readonly args: readonly [];
|
|
503
|
+
};
|
|
504
|
+
readonly "video-hide-actions": {
|
|
505
|
+
readonly help: "playwright-cli video-hide-actions \n\nStop annotating actions performed on the page\n";
|
|
506
|
+
readonly flags: {};
|
|
507
|
+
readonly args: readonly [];
|
|
508
|
+
};
|
|
509
|
+
readonly show: {
|
|
510
|
+
readonly help: "playwright-cli show \n\nShow Playwright Dashboard\n\nOptions:\n --port start as a blocking http server on this port (use 0 for a random port)\n --host host to bind to when using --port (defaults to localhost)\n --annotate switch the dashboard into annotation mode.\n --kill kill the dashboard daemon.";
|
|
511
|
+
readonly flags: {
|
|
512
|
+
readonly port: "string";
|
|
513
|
+
readonly host: "string";
|
|
514
|
+
readonly annotate: "boolean";
|
|
515
|
+
readonly kill: "boolean";
|
|
516
|
+
};
|
|
517
|
+
readonly args: readonly [];
|
|
518
|
+
readonly raw: true;
|
|
519
|
+
};
|
|
520
|
+
readonly "pause-at": {
|
|
521
|
+
readonly help: "playwright-cli pause-at <location>\n\nRun the test up to a specific location and pause there\n\nArguments:\n <location> location to pause at. format is <file>:<line>, e.g. \"example.spec.ts:42\".";
|
|
522
|
+
readonly flags: {};
|
|
523
|
+
readonly args: readonly ["location"];
|
|
524
|
+
};
|
|
525
|
+
readonly resume: {
|
|
526
|
+
readonly help: "playwright-cli resume \n\nResume the test execution\n";
|
|
527
|
+
readonly flags: {};
|
|
528
|
+
readonly args: readonly [];
|
|
529
|
+
};
|
|
530
|
+
readonly "step-over": {
|
|
531
|
+
readonly help: "playwright-cli step-over \n\nStep over the next call in the test\n";
|
|
532
|
+
readonly flags: {};
|
|
533
|
+
readonly args: readonly [];
|
|
534
|
+
};
|
|
535
|
+
readonly "generate-locator": {
|
|
536
|
+
readonly help: "playwright-cli generate-locator <target>\n\nGenerate a Playwright locator for the given element\n\nArguments:\n <target> exact target element reference from the page snapshot, or a unique element selector";
|
|
537
|
+
readonly flags: {};
|
|
538
|
+
readonly args: readonly ["target"];
|
|
539
|
+
};
|
|
540
|
+
readonly highlight: {
|
|
541
|
+
readonly help: "playwright-cli highlight [target]\n\nShow (or with --hide, remove) a highlight overlay for an element; `--hide` without a target hides all page highlights.\n\nArguments:\n [target] exact target element reference from the page snapshot, or a unique element selector\nOptions:\n --hide hide a previously added highlight for this element, or all page highlights when no element is given\n --style additional inline css applied to the highlight overlay, e.g. \"outline: 2px dashed red\"";
|
|
542
|
+
readonly flags: {
|
|
543
|
+
readonly hide: "boolean";
|
|
544
|
+
readonly style: "string";
|
|
545
|
+
};
|
|
546
|
+
readonly args: readonly ["target"];
|
|
547
|
+
};
|
|
548
|
+
readonly list: {
|
|
549
|
+
readonly help: "playwright-cli list \n\nList browser sessions\n\nOptions:\n --all list all browser sessions across all workspaces";
|
|
550
|
+
readonly flags: {
|
|
551
|
+
readonly all: "boolean";
|
|
552
|
+
};
|
|
553
|
+
readonly args: readonly [];
|
|
554
|
+
};
|
|
555
|
+
readonly "close-all": {
|
|
556
|
+
readonly help: "playwright-cli close-all \n\nClose all browser sessions\n";
|
|
557
|
+
readonly flags: {};
|
|
558
|
+
readonly args: readonly [];
|
|
559
|
+
};
|
|
560
|
+
readonly "kill-all": {
|
|
561
|
+
readonly help: "playwright-cli kill-all \n\nForcefully kill all browser sessions (for stale/zombie processes)\n";
|
|
562
|
+
readonly flags: {};
|
|
563
|
+
readonly args: readonly [];
|
|
564
|
+
};
|
|
565
|
+
readonly "webmcp-list": {
|
|
566
|
+
readonly help: "playwright-cli webmcp-list \n\nList the WebMCP tools registered by the page\n";
|
|
567
|
+
readonly flags: {};
|
|
568
|
+
readonly args: readonly [];
|
|
569
|
+
};
|
|
570
|
+
readonly "webmcp-call": {
|
|
571
|
+
readonly help: "playwright-cli webmcp-call <name>\n\nCall a WebMCP tool registered by the page\n\nArguments:\n <name> name of the webmcp tool to call\nOptions:\n --params tool input parameters as a json object, for example '{\"query\":\"cats\"}'\n --frame frame that registered the tool, as reported by webmcp-list, when the tool name is ambiguous";
|
|
572
|
+
readonly flags: {
|
|
573
|
+
readonly params: "string";
|
|
574
|
+
readonly frame: "string";
|
|
575
|
+
};
|
|
576
|
+
readonly args: readonly ["name"];
|
|
577
|
+
};
|
|
578
|
+
readonly tray: {
|
|
579
|
+
readonly help: "playwright-cli tray \n\nRun tray\n";
|
|
580
|
+
readonly flags: {};
|
|
581
|
+
readonly args: readonly [];
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
//# sourceMappingURL=command-reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-reference.d.ts","sourceRoot":"","sources":["../../src/playwright/command-reference.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAssB7B,CAAC"}
|