@wdio/protocols 8.10.2 → 8.11.0

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.
@@ -1,20 +1,3 @@
1
- import type { BidiResponse } from '../types.js';
2
1
  export default interface WebdriverBidiCommands {
3
- /**
4
- * WebdriverBidi Protocol Command
5
- *
6
- * Send socket commands via WebDriver Bidi
7
- * @ref https://github.com/w3c/webdriver-bidi
8
- *
9
- */
10
- send(params: object): Promise<BidiResponse>;
11
- /**
12
- * WebdriverBidi Protocol Command
13
- *
14
- * Send asynchronous socket commands via WebDriver Bidi
15
- * @ref https://github.com/w3c/webdriver-bidi
16
- *
17
- */
18
- sendAsync(params: object): Promise<void>;
19
2
  }
20
3
  //# sourceMappingURL=webdriverBidi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webdriverBidi.d.ts","sourceRoot":"","sources":["../../src/commands/webdriverBidi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C,MAAM,CAAC,OAAO,WAAW,qBAAqB;IAE1C;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C"}
1
+ {"version":3,"file":"webdriverBidi.d.ts","sourceRoot":"","sources":["../../src/commands/webdriverBidi.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,WAAW,qBAAqB;CAC7C"}
package/build/index.d.ts CHANGED
@@ -6,7 +6,6 @@ import type MJSONWPCommands from './commands/mjsonwp.js';
6
6
  import type SauceLabsCommands from './commands/saucelabs.js';
7
7
  import type SeleniumCommands from './commands/selenium.js';
8
8
  import type WebDriverCommands from './commands/webdriver.js';
9
- import type WebDriverBidiCommands from './commands/webdriverBidi.js';
10
9
  import WebDriverProtocol from './protocols/webdriver.js';
11
10
  import WebDriverBidiProtocol from './protocols/webdriverBidi.js';
12
11
  import MJsonWProtocol from './protocols/mjsonwp.js';
@@ -16,9 +15,9 @@ import ChromiumProtocol from './protocols/chromium.js';
16
15
  import GeckoProtocol from './protocols/gecko.js';
17
16
  import SauceLabsProtocol from './protocols/saucelabs.js';
18
17
  import SeleniumProtocol from './protocols/selenium.js';
19
- export interface ProtocolCommands extends WebDriverCommands, Omit<JSONWPCommands, keyof WebDriverCommands>, AppiumCommands, ChromiumCommands, Omit<MJSONWPCommands, keyof AppiumCommands | keyof ChromiumCommands>, SauceLabsCommands, SeleniumCommands, GeckoCommands, WebDriverBidiCommands {
18
+ export interface ProtocolCommands extends WebDriverCommands, Omit<JSONWPCommands, keyof WebDriverCommands>, AppiumCommands, ChromiumCommands, Omit<MJSONWPCommands, keyof AppiumCommands | keyof ChromiumCommands>, SauceLabsCommands, SeleniumCommands, GeckoCommands {
20
19
  }
21
20
  export * from './types.js';
22
- export { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol, AppiumCommands, ChromiumCommands, JSONWPCommands, MJSONWPCommands, SauceLabsCommands, SeleniumCommands, WebDriverCommands, GeckoCommands, WebDriverBidiCommands };
21
+ export { WebDriverProtocol, MJsonWProtocol, JsonWProtocol, AppiumProtocol, ChromiumProtocol, SauceLabsProtocol, SeleniumProtocol, GeckoProtocol, WebDriverBidiProtocol, AppiumCommands, ChromiumCommands, JSONWPCommands, MJSONWPCommands, SauceLabsCommands, SeleniumCommands, WebDriverCommands, GeckoCommands };
23
22
  export declare const CAPABILITY_KEYS: string[];
24
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAA;AACtD,OAAO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,EAAE,aAAa,EACpE,qBAAqB,EAErB,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EACjE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,aAAa,EACxE,CAAA;AAED,eAAO,MAAM,eAAe,UAI3B,CAAA"}
@@ -1,3 +1,17 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification. You can generate this file by calling
7
+ *
8
+ * ```
9
+ * $ npm run generate:bidi
10
+ * ```
11
+ *
12
+ * from the project root. You can find the scripts that generates this file in
13
+ * ./scripts/bidi/**
14
+ */
1
15
  declare const _default: {
2
16
  sendCommand: {
3
17
  socket: {
@@ -18,6 +32,342 @@ declare const _default: {
18
32
  };
19
33
  };
20
34
  sendAsyncCommand: {
35
+ socket: {
36
+ command: string;
37
+ description: string;
38
+ ref: string;
39
+ parameters: {
40
+ name: string;
41
+ type: string;
42
+ description: string;
43
+ required: boolean;
44
+ }[];
45
+ returns: {
46
+ type: string;
47
+ name: string;
48
+ description: string;
49
+ };
50
+ };
51
+ };
52
+ "session.status": {
53
+ socket: {
54
+ command: string;
55
+ description: string;
56
+ ref: string;
57
+ parameters: {
58
+ name: string;
59
+ type: string;
60
+ description: string;
61
+ required: boolean;
62
+ }[];
63
+ returns: {
64
+ type: string;
65
+ name: string;
66
+ description: string;
67
+ };
68
+ };
69
+ };
70
+ "session.new": {
71
+ socket: {
72
+ command: string;
73
+ description: string;
74
+ ref: string;
75
+ parameters: {
76
+ name: string;
77
+ type: string;
78
+ description: string;
79
+ required: boolean;
80
+ }[];
81
+ returns: {
82
+ type: string;
83
+ name: string;
84
+ description: string;
85
+ };
86
+ };
87
+ };
88
+ "session.end": {
89
+ socket: {
90
+ command: string;
91
+ description: string;
92
+ ref: string;
93
+ parameters: {
94
+ name: string;
95
+ type: string;
96
+ description: string;
97
+ required: boolean;
98
+ }[];
99
+ };
100
+ };
101
+ "session.subscribe": {
102
+ socket: {
103
+ command: string;
104
+ description: string;
105
+ ref: string;
106
+ parameters: {
107
+ name: string;
108
+ type: string;
109
+ description: string;
110
+ required: boolean;
111
+ }[];
112
+ };
113
+ };
114
+ "session.unsubscribe": {
115
+ socket: {
116
+ command: string;
117
+ description: string;
118
+ ref: string;
119
+ parameters: {
120
+ name: string;
121
+ type: string;
122
+ description: string;
123
+ required: boolean;
124
+ }[];
125
+ };
126
+ };
127
+ "browser.close": {
128
+ socket: {
129
+ command: string;
130
+ description: string;
131
+ ref: string;
132
+ parameters: {
133
+ name: string;
134
+ type: string;
135
+ description: string;
136
+ required: boolean;
137
+ }[];
138
+ };
139
+ };
140
+ "browsingContext.captureScreenshot": {
141
+ socket: {
142
+ command: string;
143
+ description: string;
144
+ ref: string;
145
+ parameters: {
146
+ name: string;
147
+ type: string;
148
+ description: string;
149
+ required: boolean;
150
+ }[];
151
+ returns: {
152
+ type: string;
153
+ name: string;
154
+ description: string;
155
+ };
156
+ };
157
+ };
158
+ "browsingContext.close": {
159
+ socket: {
160
+ command: string;
161
+ description: string;
162
+ ref: string;
163
+ parameters: {
164
+ name: string;
165
+ type: string;
166
+ description: string;
167
+ required: boolean;
168
+ }[];
169
+ };
170
+ };
171
+ "browsingContext.create": {
172
+ socket: {
173
+ command: string;
174
+ description: string;
175
+ ref: string;
176
+ parameters: {
177
+ name: string;
178
+ type: string;
179
+ description: string;
180
+ required: boolean;
181
+ }[];
182
+ returns: {
183
+ type: string;
184
+ name: string;
185
+ description: string;
186
+ };
187
+ };
188
+ };
189
+ "browsingContext.getTree": {
190
+ socket: {
191
+ command: string;
192
+ description: string;
193
+ ref: string;
194
+ parameters: {
195
+ name: string;
196
+ type: string;
197
+ description: string;
198
+ required: boolean;
199
+ }[];
200
+ returns: {
201
+ type: string;
202
+ name: string;
203
+ description: string;
204
+ };
205
+ };
206
+ };
207
+ "browsingContext.handleUserPrompt": {
208
+ socket: {
209
+ command: string;
210
+ description: string;
211
+ ref: string;
212
+ parameters: {
213
+ name: string;
214
+ type: string;
215
+ description: string;
216
+ required: boolean;
217
+ }[];
218
+ };
219
+ };
220
+ "browsingContext.navigate": {
221
+ socket: {
222
+ command: string;
223
+ description: string;
224
+ ref: string;
225
+ parameters: {
226
+ name: string;
227
+ type: string;
228
+ description: string;
229
+ required: boolean;
230
+ }[];
231
+ returns: {
232
+ type: string;
233
+ name: string;
234
+ description: string;
235
+ };
236
+ };
237
+ };
238
+ "browsingContext.print": {
239
+ socket: {
240
+ command: string;
241
+ description: string;
242
+ ref: string;
243
+ parameters: {
244
+ name: string;
245
+ type: string;
246
+ description: string;
247
+ required: boolean;
248
+ }[];
249
+ returns: {
250
+ type: string;
251
+ name: string;
252
+ description: string;
253
+ };
254
+ };
255
+ };
256
+ "browsingContext.reload": {
257
+ socket: {
258
+ command: string;
259
+ description: string;
260
+ ref: string;
261
+ parameters: {
262
+ name: string;
263
+ type: string;
264
+ description: string;
265
+ required: boolean;
266
+ }[];
267
+ };
268
+ };
269
+ "script.addPreloadScript": {
270
+ socket: {
271
+ command: string;
272
+ description: string;
273
+ ref: string;
274
+ parameters: {
275
+ name: string;
276
+ type: string;
277
+ description: string;
278
+ required: boolean;
279
+ }[];
280
+ };
281
+ };
282
+ "script.disown": {
283
+ socket: {
284
+ command: string;
285
+ description: string;
286
+ ref: string;
287
+ parameters: {
288
+ name: string;
289
+ type: string;
290
+ description: string;
291
+ required: boolean;
292
+ }[];
293
+ };
294
+ };
295
+ "script.callFunction": {
296
+ socket: {
297
+ command: string;
298
+ description: string;
299
+ ref: string;
300
+ parameters: {
301
+ name: string;
302
+ type: string;
303
+ description: string;
304
+ required: boolean;
305
+ }[];
306
+ };
307
+ };
308
+ "script.evaluate": {
309
+ socket: {
310
+ command: string;
311
+ description: string;
312
+ ref: string;
313
+ parameters: {
314
+ name: string;
315
+ type: string;
316
+ description: string;
317
+ required: boolean;
318
+ }[];
319
+ returns: {
320
+ type: string;
321
+ name: string;
322
+ description: string;
323
+ };
324
+ };
325
+ };
326
+ "script.getRealms": {
327
+ socket: {
328
+ command: string;
329
+ description: string;
330
+ ref: string;
331
+ parameters: {
332
+ name: string;
333
+ type: string;
334
+ description: string;
335
+ required: boolean;
336
+ }[];
337
+ returns: {
338
+ type: string;
339
+ name: string;
340
+ description: string;
341
+ };
342
+ };
343
+ };
344
+ "script.removePreloadScript": {
345
+ socket: {
346
+ command: string;
347
+ description: string;
348
+ ref: string;
349
+ parameters: {
350
+ name: string;
351
+ type: string;
352
+ description: string;
353
+ required: boolean;
354
+ }[];
355
+ };
356
+ };
357
+ "input.performActions": {
358
+ socket: {
359
+ command: string;
360
+ description: string;
361
+ ref: string;
362
+ parameters: {
363
+ name: string;
364
+ type: string;
365
+ description: string;
366
+ required: boolean;
367
+ }[];
368
+ };
369
+ };
370
+ "input.releaseActions": {
21
371
  socket: {
22
372
  command: string;
23
373
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"webdriverBidi.d.ts","sourceRoot":"","sources":["../../src/protocols/webdriverBidi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAoCC"}
1
+ {"version":3,"file":"webdriverBidi.d.ts","sourceRoot":"","sources":["../../src/protocols/webdriverBidi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,wBAgaC"}
@@ -1,37 +1,431 @@
1
+ /**
2
+ * !!! PLEASE DO NOT EDIT THIS FILE !!!
3
+ *
4
+ * This source file, even though checked in, is auto-generated based on the
5
+ * current development within the WebDriver Bidi spec. Any changes to this
6
+ * file need to come from the specification. You can generate this file by calling
7
+ *
8
+ * ```
9
+ * $ npm run generate:bidi
10
+ * ```
11
+ *
12
+ * from the project root. You can find the scripts that generates this file in
13
+ * ./scripts/bidi/**
14
+ */
1
15
  export default {
2
- sendCommand: {
3
- socket: {
4
- command: 'send',
5
- description: 'Send socket commands via WebDriver Bidi',
6
- ref: 'https://github.com/w3c/webdriver-bidi',
7
- parameters: [
8
- {
9
- name: 'params',
10
- type: 'object',
11
- description: 'socket payload',
12
- required: true,
13
- },
14
- ],
15
- returns: {
16
- type: 'Object',
17
- name: 'response',
18
- description: 'WebDriver Bidi response',
19
- },
20
- },
21
- },
22
- sendAsyncCommand: {
23
- socket: {
24
- command: 'sendAsync',
25
- description: 'Send asynchronous socket commands via WebDriver Bidi',
26
- ref: 'https://github.com/w3c/webdriver-bidi',
27
- parameters: [
28
- {
29
- name: 'params',
30
- type: 'object',
31
- description: 'socket payload',
32
- required: true,
33
- },
34
- ],
35
- },
16
+ "sendCommand": {
17
+ "socket": {
18
+ "command": "send",
19
+ "description": "Send socket commands via WebDriver Bidi",
20
+ "ref": "https://github.com/w3c/webdriver-bidi",
21
+ "parameters": [
22
+ {
23
+ "name": "params",
24
+ "type": "CommandData",
25
+ "description": "socket payload",
26
+ "required": true
27
+ }
28
+ ],
29
+ "returns": {
30
+ "type": "Object",
31
+ "name": "CommandResponse",
32
+ "description": "WebDriver Bidi response"
33
+ }
34
+ }
35
+ },
36
+ "sendAsyncCommand": {
37
+ "socket": {
38
+ "command": "sendAsync",
39
+ "description": "Send asynchronous socket commands via WebDriver Bidi",
40
+ "ref": "https://github.com/w3c/webdriver-bidi",
41
+ "parameters": [
42
+ {
43
+ "name": "params",
44
+ "type": "CommandData",
45
+ "description": "socket payload",
46
+ "required": true
47
+ }
48
+ ],
49
+ "returns": {
50
+ "type": "Number",
51
+ "name": "id",
52
+ "description": "id of WebDriver Bidi request"
53
+ }
54
+ }
55
+ },
56
+ "session.status": {
57
+ "socket": {
58
+ "command": "sessionStatus",
59
+ "description": "WebDriver Bidi command to send command method \"session.status\" with parameters.",
60
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-session-status",
61
+ "parameters": [
62
+ {
63
+ "name": "params",
64
+ "type": "`remote.EmptyParams`",
65
+ "description": "<pre>{}</pre>",
66
+ "required": true
67
+ }
68
+ ],
69
+ "returns": {
70
+ "type": "Object",
71
+ "name": "local.SessionStatusResult",
72
+ "description": "Command return value with the following interface:\n ```ts\n {\n ready: boolean;\n message: string;\n }\n ```"
73
+ }
74
+ }
75
+ },
76
+ "session.new": {
77
+ "socket": {
78
+ "command": "sessionNew",
79
+ "description": "WebDriver Bidi command to send command method \"session.new\" with parameters.",
80
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-session-new",
81
+ "parameters": [
82
+ {
83
+ "name": "params",
84
+ "type": "`remote.SessionNewParameters`",
85
+ "description": "<pre>{<br /> capabilities: SessionCapabilitiesRequest;<br />}</pre>",
86
+ "required": true
87
+ }
88
+ ],
89
+ "returns": {
90
+ "type": "Object",
91
+ "name": "local.SessionNewResult",
92
+ "description": "Command return value with the following interface:\n ```ts\n {\n sessionId: string;\n capabilities: {\n acceptInsecureCerts: boolean;\n browserName: string;\n browserVersion: string;\n platformName: string;\n proxy: {\n proxyType?: \"pac\" | \"direct\" | \"autodetect\" | \"system\" | \"manual\";\n proxyAutoconfigUrl?: string;\n ftpProxy?: string;\n httpProxy?: string;\n noProxy?: string[];\n sslProxy?: string;\n socksProxy?: string;\n socksVersion?: number;\n };\n setWindowRect: boolean;\n };\n }\n ```"
93
+ }
94
+ }
95
+ },
96
+ "session.end": {
97
+ "socket": {
98
+ "command": "sessionEnd",
99
+ "description": "WebDriver Bidi command to send command method \"session.end\" with parameters.",
100
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-session-end",
101
+ "parameters": [
102
+ {
103
+ "name": "params",
104
+ "type": "`remote.EmptyParams`",
105
+ "description": "<pre>{}</pre>",
106
+ "required": true
107
+ }
108
+ ]
109
+ }
110
+ },
111
+ "session.subscribe": {
112
+ "socket": {
113
+ "command": "sessionSubscribe",
114
+ "description": "WebDriver Bidi command to send command method \"session.subscribe\" with parameters.",
115
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-session-subscribe",
116
+ "parameters": [
117
+ {
118
+ "name": "params",
119
+ "type": "`remote.SessionSubscriptionRequest`",
120
+ "description": "<pre>{<br /> events: string[];<br /> contexts?: BrowsingContextBrowsingContext[];<br />}</pre>",
121
+ "required": true
122
+ }
123
+ ]
124
+ }
36
125
  },
126
+ "session.unsubscribe": {
127
+ "socket": {
128
+ "command": "sessionUnsubscribe",
129
+ "description": "WebDriver Bidi command to send command method \"session.unsubscribe\" with parameters.",
130
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-session-unsubscribe",
131
+ "parameters": [
132
+ {
133
+ "name": "params",
134
+ "type": "`remote.SessionSubscriptionRequest`",
135
+ "description": "<pre>{<br /> events: string[];<br /> contexts?: BrowsingContextBrowsingContext[];<br />}</pre>",
136
+ "required": true
137
+ }
138
+ ]
139
+ }
140
+ },
141
+ "browser.close": {
142
+ "socket": {
143
+ "command": "browserClose",
144
+ "description": "WebDriver Bidi command to send command method \"browser.close\" with parameters.",
145
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browser-close",
146
+ "parameters": [
147
+ {
148
+ "name": "params",
149
+ "type": "`remote.EmptyParams`",
150
+ "description": "<pre>{}</pre>",
151
+ "required": true
152
+ }
153
+ ]
154
+ }
155
+ },
156
+ "browsingContext.captureScreenshot": {
157
+ "socket": {
158
+ "command": "browsingContextCaptureScreenshot",
159
+ "description": "WebDriver Bidi command to send command method \"browsingContext.captureScreenshot\" with parameters.",
160
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot",
161
+ "parameters": [
162
+ {
163
+ "name": "params",
164
+ "type": "`remote.BrowsingContextCaptureScreenshotParameters`",
165
+ "description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
166
+ "required": true
167
+ }
168
+ ],
169
+ "returns": {
170
+ "type": "Object",
171
+ "name": "local.BrowsingContextCaptureScreenshotResult",
172
+ "description": "Command return value with the following interface:\n ```ts\n {\n data: string;\n }\n ```"
173
+ }
174
+ }
175
+ },
176
+ "browsingContext.close": {
177
+ "socket": {
178
+ "command": "browsingContextClose",
179
+ "description": "WebDriver Bidi command to send command method \"browsingContext.close\" with parameters.",
180
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-close",
181
+ "parameters": [
182
+ {
183
+ "name": "params",
184
+ "type": "`remote.BrowsingContextCloseParameters`",
185
+ "description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
186
+ "required": true
187
+ }
188
+ ]
189
+ }
190
+ },
191
+ "browsingContext.create": {
192
+ "socket": {
193
+ "command": "browsingContextCreate",
194
+ "description": "WebDriver Bidi command to send command method \"browsingContext.create\" with parameters.",
195
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-create",
196
+ "parameters": [
197
+ {
198
+ "name": "params",
199
+ "type": "`remote.BrowsingContextCreateParameters`",
200
+ "description": "<pre>{<br /> type: BrowsingContextCreateType;<br /> referenceContext?: BrowsingContextBrowsingContext;<br />}</pre>",
201
+ "required": true
202
+ }
203
+ ],
204
+ "returns": {
205
+ "type": "Object",
206
+ "name": "local.BrowsingContextCreateResult",
207
+ "description": "Command return value with the following interface:\n ```ts\n {\n context: BrowsingContextBrowsingContext;\n }\n ```"
208
+ }
209
+ }
210
+ },
211
+ "browsingContext.getTree": {
212
+ "socket": {
213
+ "command": "browsingContextGetTree",
214
+ "description": "WebDriver Bidi command to send command method \"browsingContext.getTree\" with parameters.",
215
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree",
216
+ "parameters": [
217
+ {
218
+ "name": "params",
219
+ "type": "`remote.BrowsingContextGetTreeParameters`",
220
+ "description": "<pre>{<br /> maxDepth?: JsUint;<br /> root?: BrowsingContextBrowsingContext;<br />}</pre>",
221
+ "required": true
222
+ }
223
+ ],
224
+ "returns": {
225
+ "type": "Object",
226
+ "name": "local.BrowsingContextGetTreeResult",
227
+ "description": "Command return value with the following interface:\n ```ts\n {\n contexts: BrowsingContextInfoList;\n }\n ```"
228
+ }
229
+ }
230
+ },
231
+ "browsingContext.handleUserPrompt": {
232
+ "socket": {
233
+ "command": "browsingContextHandleUserPrompt",
234
+ "description": "WebDriver Bidi command to send command method \"browsingContext.handleUserPrompt\" with parameters.",
235
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt",
236
+ "parameters": [
237
+ {
238
+ "name": "params",
239
+ "type": "`remote.BrowsingContextHandleUserPromptParameters`",
240
+ "description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> accept?: boolean;<br /> userText?: string;<br />}</pre>",
241
+ "required": true
242
+ }
243
+ ]
244
+ }
245
+ },
246
+ "browsingContext.navigate": {
247
+ "socket": {
248
+ "command": "browsingContextNavigate",
249
+ "description": "WebDriver Bidi command to send command method \"browsingContext.navigate\" with parameters.",
250
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate",
251
+ "parameters": [
252
+ {
253
+ "name": "params",
254
+ "type": "`remote.BrowsingContextNavigateParameters`",
255
+ "description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> url: string;<br /> wait?: BrowsingContextReadinessState;<br />}</pre>",
256
+ "required": true
257
+ }
258
+ ],
259
+ "returns": {
260
+ "type": "Object",
261
+ "name": "local.BrowsingContextNavigateResult",
262
+ "description": "Command return value with the following interface:\n ```ts\n {\n navigation: BrowsingContextNavigation | null;\n url: string;\n }\n ```"
263
+ }
264
+ }
265
+ },
266
+ "browsingContext.print": {
267
+ "socket": {
268
+ "command": "browsingContextPrint",
269
+ "description": "WebDriver Bidi command to send command method \"browsingContext.print\" with parameters.",
270
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-print",
271
+ "parameters": [
272
+ {
273
+ "name": "params",
274
+ "type": "`remote.BrowsingContextPrintParameters`",
275
+ "description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> background?: boolean;<br /> margin?: BrowsingContextPrintMarginParameters;<br /> /\\*\\*<br /> \\* @default 'portrait'<br /> \\*/<br /> orientation?: \"portrait\" &#124; \"landscape\";<br /> page?: BrowsingContextPrintPageParameters;<br /> pageRanges?: (JsUint &#124; string)[];<br /> /\\*\\*<br /> \\* @default 1<br /> \\*/<br /> scale?: number;<br /> /\\*\\*<br /> \\* @default true<br /> \\*/<br /> shrinkToFit?: boolean;<br />}</pre>",
276
+ "required": true
277
+ }
278
+ ],
279
+ "returns": {
280
+ "type": "Object",
281
+ "name": "local.BrowsingContextPrintResult",
282
+ "description": "Command return value with the following interface:\n ```ts\n {\n data: string;\n }\n ```"
283
+ }
284
+ }
285
+ },
286
+ "browsingContext.reload": {
287
+ "socket": {
288
+ "command": "browsingContextReload",
289
+ "description": "WebDriver Bidi command to send command method \"browsingContext.reload\" with parameters.",
290
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload",
291
+ "parameters": [
292
+ {
293
+ "name": "params",
294
+ "type": "`remote.BrowsingContextReloadParameters`",
295
+ "description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> ignoreCache?: boolean;<br /> wait?: BrowsingContextReadinessState;<br />}</pre>",
296
+ "required": true
297
+ }
298
+ ]
299
+ }
300
+ },
301
+ "script.addPreloadScript": {
302
+ "socket": {
303
+ "command": "scriptAddPreloadScriptCommand",
304
+ "description": "WebDriver Bidi command to send command method \"script.addPreloadScript\" with parameters.",
305
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript",
306
+ "parameters": [
307
+ {
308
+ "name": "params",
309
+ "type": "`remote.ScriptAddPreloadScriptParameters`",
310
+ "description": "<pre>{<br /> functionDeclaration: string;<br /> arguments?: ScriptChannelValue[];<br /> sandbox?: string;<br />}</pre>",
311
+ "required": true
312
+ }
313
+ ]
314
+ }
315
+ },
316
+ "script.disown": {
317
+ "socket": {
318
+ "command": "scriptDisown",
319
+ "description": "WebDriver Bidi command to send command method \"script.disown\" with parameters.",
320
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-script-disown",
321
+ "parameters": [
322
+ {
323
+ "name": "params",
324
+ "type": "`remote.ScriptDisownParameters`",
325
+ "description": "<pre>{<br /> handles: ScriptHandle[];<br /> target: ScriptTarget;<br />}</pre>",
326
+ "required": true
327
+ }
328
+ ]
329
+ }
330
+ },
331
+ "script.callFunction": {
332
+ "socket": {
333
+ "command": "scriptCallFunction",
334
+ "description": "WebDriver Bidi command to send command method \"script.callFunction\" with parameters.",
335
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-script-callFunction",
336
+ "parameters": [
337
+ {
338
+ "name": "params",
339
+ "type": "`remote.ScriptCallFunctionParameters`",
340
+ "description": "<pre>{<br /> functionDeclaration: string;<br /> awaitPromise: boolean;<br /> target: ScriptTarget;<br /> arguments?: ScriptArgumentValue[];<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br /> this?: ScriptArgumentValue;<br />}</pre>",
341
+ "required": true
342
+ }
343
+ ]
344
+ }
345
+ },
346
+ "script.evaluate": {
347
+ "socket": {
348
+ "command": "scriptEvaluate",
349
+ "description": "WebDriver Bidi command to send command method \"script.evaluate\" with parameters.",
350
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-script-evaluate",
351
+ "parameters": [
352
+ {
353
+ "name": "params",
354
+ "type": "`remote.ScriptEvaluateParameters`",
355
+ "description": "<pre>{<br /> expression: string;<br /> target: ScriptTarget;<br /> awaitPromise: boolean;<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br />}</pre>",
356
+ "required": true
357
+ }
358
+ ],
359
+ "returns": {
360
+ "type": "Object",
361
+ "name": "local.ScriptEvaluateResult",
362
+ "description": "Command return value with the following interface:\n ```ts\n ;\n ```"
363
+ }
364
+ }
365
+ },
366
+ "script.getRealms": {
367
+ "socket": {
368
+ "command": "scriptGetRealms",
369
+ "description": "WebDriver Bidi command to send command method \"script.getRealms\" with parameters.",
370
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-script-getRealms",
371
+ "parameters": [
372
+ {
373
+ "name": "params",
374
+ "type": "`remote.ScriptGetRealmsParameters`",
375
+ "description": "<pre>{<br /> context?: BrowsingContextBrowsingContext;<br /> type?: ScriptRealmType;<br />}</pre>",
376
+ "required": true
377
+ }
378
+ ],
379
+ "returns": {
380
+ "type": "Object",
381
+ "name": "local.ScriptGetRealmsResult",
382
+ "description": "Command return value with the following interface:\n ```ts\n {\n realms: ScriptRealmInfo[];\n }\n ```"
383
+ }
384
+ }
385
+ },
386
+ "script.removePreloadScript": {
387
+ "socket": {
388
+ "command": "scriptRemovePreloadScriptCommand",
389
+ "description": "WebDriver Bidi command to send command method \"script.removePreloadScript\" with parameters.",
390
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript",
391
+ "parameters": [
392
+ {
393
+ "name": "params",
394
+ "type": "`remote.ScriptRemovePreloadScriptParameters`",
395
+ "description": "<pre>{<br /> script: ScriptPreloadScript;<br />}</pre>",
396
+ "required": true
397
+ }
398
+ ]
399
+ }
400
+ },
401
+ "input.performActions": {
402
+ "socket": {
403
+ "command": "inputPerformActions",
404
+ "description": "WebDriver Bidi command to send command method \"input.performActions\" with parameters.",
405
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-input-performActions",
406
+ "parameters": [
407
+ {
408
+ "name": "params",
409
+ "type": "`remote.InputPerformActionsParameters`",
410
+ "description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br /> actions: InputSourceActions[];<br />}</pre>",
411
+ "required": true
412
+ }
413
+ ]
414
+ }
415
+ },
416
+ "input.releaseActions": {
417
+ "socket": {
418
+ "command": "inputReleaseActions",
419
+ "description": "WebDriver Bidi command to send command method \"input.releaseActions\" with parameters.",
420
+ "ref": "https://w3c.github.io/webdriver-bidi/#command-input-releaseActions",
421
+ "parameters": [
422
+ {
423
+ "name": "params",
424
+ "type": "`remote.InputReleaseActionsParameters`",
425
+ "description": "<pre>{<br /> context: BrowsingContextBrowsingContext;<br />}</pre>",
426
+ "required": true
427
+ }
428
+ ]
429
+ }
430
+ }
37
431
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/protocols",
3
- "version": "8.10.2",
3
+ "version": "8.11.0",
4
4
  "description": "Utility package providing information about automation protocols",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-protocols",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "fb163d506af31d0c5e5328bfee07d55a56aa0034"
30
+ "gitHead": "6fa7ae486537cbd3f6dd9e3bcc1812eb0acc6262"
31
31
  }