@wdio/protocols 9.0.0-alpha.78 → 9.0.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,612 +0,0 @@
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
- */
15
- const protocol = {
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
- }
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.activate": {
157
- "socket": {
158
- "command": "browsingContextActivate",
159
- "description": "WebDriver Bidi command to send command method \"browsingContext.activate\" with parameters.",
160
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate",
161
- "parameters": [
162
- {
163
- "name": "params",
164
- "type": "`remote.BrowsingContextActivateParameters`",
165
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br />\\}</pre>",
166
- "required": true
167
- }
168
- ]
169
- }
170
- },
171
- "browsingContext.captureScreenshot": {
172
- "socket": {
173
- "command": "browsingContextCaptureScreenshot",
174
- "description": "WebDriver Bidi command to send command method \"browsingContext.captureScreenshot\" with parameters.",
175
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot",
176
- "parameters": [
177
- {
178
- "name": "params",
179
- "type": "`remote.BrowsingContextCaptureScreenshotParameters`",
180
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> /\\*\\*<br /> \\* @default 'viewport'<br /> \\*/<br /> origin?: \"viewport\" &#124; \"document\";<br /> format?: BrowsingContextImageFormat;<br /> clip?: BrowsingContextClipRectangle;<br />\\}</pre>",
181
- "required": true
182
- }
183
- ],
184
- "returns": {
185
- "type": "Object",
186
- "name": "local.BrowsingContextCaptureScreenshotResult",
187
- "description": "Command return value with the following interface:\n ```ts\n {\n data: string;\n }\n ```"
188
- }
189
- }
190
- },
191
- "browsingContext.close": {
192
- "socket": {
193
- "command": "browsingContextClose",
194
- "description": "WebDriver Bidi command to send command method \"browsingContext.close\" with parameters.",
195
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-close",
196
- "parameters": [
197
- {
198
- "name": "params",
199
- "type": "`remote.BrowsingContextCloseParameters`",
200
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> promptUnload?: boolean;<br />\\}</pre>",
201
- "required": true
202
- }
203
- ]
204
- }
205
- },
206
- "browsingContext.create": {
207
- "socket": {
208
- "command": "browsingContextCreate",
209
- "description": "WebDriver Bidi command to send command method \"browsingContext.create\" with parameters.",
210
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-create",
211
- "parameters": [
212
- {
213
- "name": "params",
214
- "type": "`remote.BrowsingContextCreateParameters`",
215
- "description": "<pre>\\{<br /> type: BrowsingContextCreateType;<br /> referenceContext?: BrowsingContextBrowsingContext;<br /> background?: boolean;<br />\\}</pre>",
216
- "required": true
217
- }
218
- ],
219
- "returns": {
220
- "type": "Object",
221
- "name": "local.BrowsingContextCreateResult",
222
- "description": "Command return value with the following interface:\n ```ts\n {\n context: BrowsingContextBrowsingContext;\n }\n ```"
223
- }
224
- }
225
- },
226
- "browsingContext.getTree": {
227
- "socket": {
228
- "command": "browsingContextGetTree",
229
- "description": "WebDriver Bidi command to send command method \"browsingContext.getTree\" with parameters.",
230
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-getTree",
231
- "parameters": [
232
- {
233
- "name": "params",
234
- "type": "`remote.BrowsingContextGetTreeParameters`",
235
- "description": "<pre>\\{<br /> maxDepth?: JsUint;<br /> root?: BrowsingContextBrowsingContext;<br />\\}</pre>",
236
- "required": true
237
- }
238
- ],
239
- "returns": {
240
- "type": "Object",
241
- "name": "local.BrowsingContextGetTreeResult",
242
- "description": "Command return value with the following interface:\n ```ts\n {\n contexts: BrowsingContextInfoList;\n }\n ```"
243
- }
244
- }
245
- },
246
- "browsingContext.handleUserPrompt": {
247
- "socket": {
248
- "command": "browsingContextHandleUserPrompt",
249
- "description": "WebDriver Bidi command to send command method \"browsingContext.handleUserPrompt\" with parameters.",
250
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-handleUserPrompt",
251
- "parameters": [
252
- {
253
- "name": "params",
254
- "type": "`remote.BrowsingContextHandleUserPromptParameters`",
255
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> accept?: boolean;<br /> userText?: string;<br />\\}</pre>",
256
- "required": true
257
- }
258
- ]
259
- }
260
- },
261
- "browsingContext.locateNodes": {
262
- "socket": {
263
- "command": "browsingContextLocateNodes",
264
- "description": "WebDriver Bidi command to send command method \"browsingContext.locateNodes\" with parameters.",
265
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes",
266
- "parameters": [
267
- {
268
- "name": "params",
269
- "type": "`remote.BrowsingContextLocateNodesParameters`",
270
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> locator: BrowsingContextLocator;<br /> maxNodeCount?: JsUint;<br /> ownership?: ScriptResultOwnership;<br /> sandbox?: string;<br /> serializationOptions?: ScriptSerializationOptions;<br /> startNodes?: ScriptSharedReference[];<br />\\}</pre>",
271
- "required": true
272
- }
273
- ],
274
- "returns": {
275
- "type": "Object",
276
- "name": "local.BrowsingContextLocateNodesResult",
277
- "description": "Command return value with the following interface:\n ```ts\n {\n nodes: ScriptNodeRemoteValue[];\n }\n ```"
278
- }
279
- }
280
- },
281
- "browsingContext.navigate": {
282
- "socket": {
283
- "command": "browsingContextNavigate",
284
- "description": "WebDriver Bidi command to send command method \"browsingContext.navigate\" with parameters.",
285
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate",
286
- "parameters": [
287
- {
288
- "name": "params",
289
- "type": "`remote.BrowsingContextNavigateParameters`",
290
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> url: string;<br /> wait?: BrowsingContextReadinessState;<br />\\}</pre>",
291
- "required": true
292
- }
293
- ],
294
- "returns": {
295
- "type": "Object",
296
- "name": "local.BrowsingContextNavigateResult",
297
- "description": "Command return value with the following interface:\n ```ts\n {\n navigation: BrowsingContextNavigation | null;\n url: string;\n }\n ```"
298
- }
299
- }
300
- },
301
- "browsingContext.print": {
302
- "socket": {
303
- "command": "browsingContextPrint",
304
- "description": "WebDriver Bidi command to send command method \"browsingContext.print\" with parameters.",
305
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-print",
306
- "parameters": [
307
- {
308
- "name": "params",
309
- "type": "`remote.BrowsingContextPrintParameters`",
310
- "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>",
311
- "required": true
312
- }
313
- ],
314
- "returns": {
315
- "type": "Object",
316
- "name": "local.BrowsingContextPrintResult",
317
- "description": "Command return value with the following interface:\n ```ts\n {\n data: string;\n }\n ```"
318
- }
319
- }
320
- },
321
- "browsingContext.reload": {
322
- "socket": {
323
- "command": "browsingContextReload",
324
- "description": "WebDriver Bidi command to send command method \"browsingContext.reload\" with parameters.",
325
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-reload",
326
- "parameters": [
327
- {
328
- "name": "params",
329
- "type": "`remote.BrowsingContextReloadParameters`",
330
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> ignoreCache?: boolean;<br /> wait?: BrowsingContextReadinessState;<br />\\}</pre>",
331
- "required": true
332
- }
333
- ]
334
- }
335
- },
336
- "browsingContext.setViewport": {
337
- "socket": {
338
- "command": "browsingContextSetViewport",
339
- "description": "WebDriver Bidi command to send command method \"browsingContext.setViewport\" with parameters.",
340
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport",
341
- "parameters": [
342
- {
343
- "name": "params",
344
- "type": "`remote.BrowsingContextSetViewportParameters`",
345
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> viewport?: BrowsingContextViewport &#124; null;<br /> devicePixelRatio?: number &#124; null;<br />\\}</pre>",
346
- "required": true
347
- }
348
- ]
349
- }
350
- },
351
- "browsingContext.traverseHistory": {
352
- "socket": {
353
- "command": "browsingContextTraverseHistory",
354
- "description": "WebDriver Bidi command to send command method \"browsingContext.traverseHistory\" with parameters.",
355
- "ref": "https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory",
356
- "parameters": [
357
- {
358
- "name": "params",
359
- "type": "`remote.BrowsingContextTraverseHistoryParameters`",
360
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> delta: JsInt;<br />\\}</pre>",
361
- "required": true
362
- }
363
- ]
364
- }
365
- },
366
- "network.addIntercept": {
367
- "socket": {
368
- "command": "networkAddIntercept",
369
- "description": "WebDriver Bidi command to send command method \"network.addIntercept\" with parameters.",
370
- "ref": "https://w3c.github.io/webdriver-bidi/#command-network-addIntercept",
371
- "parameters": [
372
- {
373
- "name": "params",
374
- "type": "`remote.NetworkAddInterceptParameters`",
375
- "description": "<pre>\\{<br /> phases: NetworkInterceptPhase[];<br /> urlPatterns?: NetworkUrlPattern[];<br />\\}</pre>",
376
- "required": true
377
- }
378
- ],
379
- "returns": {
380
- "type": "Object",
381
- "name": "local.NetworkAddInterceptResult",
382
- "description": "Command return value with the following interface:\n ```ts\n {\n intercept: NetworkIntercept;\n }\n ```"
383
- }
384
- }
385
- },
386
- "network.continueRequest": {
387
- "socket": {
388
- "command": "networkContinueRequest",
389
- "description": "WebDriver Bidi command to send command method \"network.continueRequest\" with parameters.",
390
- "ref": "https://w3c.github.io/webdriver-bidi/#command-network-continueRequest",
391
- "parameters": [
392
- {
393
- "name": "params",
394
- "type": "`remote.NetworkContinueRequestParameters`",
395
- "description": "<pre>\\{<br /> request: NetworkRequest;<br /> body?: NetworkBytesValue;<br /> cookies?: NetworkCookieHeader[];<br /> headers?: NetworkHeader[];<br /> method?: string;<br /> url?: string;<br />\\}</pre>",
396
- "required": true
397
- }
398
- ]
399
- }
400
- },
401
- "network.continueResponse": {
402
- "socket": {
403
- "command": "networkContinueResponse",
404
- "description": "WebDriver Bidi command to send command method \"network.continueResponse\" with parameters.",
405
- "ref": "https://w3c.github.io/webdriver-bidi/#command-network-continueResponse",
406
- "parameters": [
407
- {
408
- "name": "params",
409
- "type": "`remote.NetworkContinueResponseParameters`",
410
- "description": "<pre>\\{<br /> request: NetworkRequest;<br /> cookies?: NetworkSetCookieHeader[];<br /> credentials?: NetworkAuthCredentials;<br /> headers?: NetworkHeader[];<br /> reasonPhrase?: string;<br /> statusCode?: JsUint;<br />\\}</pre>",
411
- "required": true
412
- }
413
- ]
414
- }
415
- },
416
- "network.continueWithAuth": {
417
- "socket": {
418
- "command": "networkContinueWithAuth",
419
- "description": "WebDriver Bidi command to send command method \"network.continueWithAuth\" with parameters.",
420
- "ref": "https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth",
421
- "parameters": [
422
- {
423
- "name": "params",
424
- "type": "`remote.NetworkContinueWithAuthParameters`",
425
- "description": "<pre>\\{<br /> request: NetworkRequest;<br />\\}</pre>",
426
- "required": true
427
- }
428
- ]
429
- }
430
- },
431
- "network.failRequest": {
432
- "socket": {
433
- "command": "networkFailRequest",
434
- "description": "WebDriver Bidi command to send command method \"network.failRequest\" with parameters.",
435
- "ref": "https://w3c.github.io/webdriver-bidi/#command-network-failRequest",
436
- "parameters": [
437
- {
438
- "name": "params",
439
- "type": "`remote.NetworkFailRequestParameters`",
440
- "description": "<pre>\\{<br /> request: NetworkRequest;<br />\\}</pre>",
441
- "required": true
442
- }
443
- ]
444
- }
445
- },
446
- "network.provideResponse": {
447
- "socket": {
448
- "command": "networkProvideResponse",
449
- "description": "WebDriver Bidi command to send command method \"network.provideResponse\" with parameters.",
450
- "ref": "https://w3c.github.io/webdriver-bidi/#command-network-provideResponse",
451
- "parameters": [
452
- {
453
- "name": "params",
454
- "type": "`remote.NetworkProvideResponseParameters`",
455
- "description": "<pre>\\{<br /> request: NetworkRequest;<br /> body?: NetworkBytesValue;<br /> cookies?: NetworkSetCookieHeader[];<br /> headers?: NetworkHeader[];<br /> reasonPhrase?: string;<br /> statusCode?: JsUint;<br />\\}</pre>",
456
- "required": true
457
- }
458
- ]
459
- }
460
- },
461
- "network.removeIntercept": {
462
- "socket": {
463
- "command": "networkRemoveIntercept",
464
- "description": "WebDriver Bidi command to send command method \"network.removeIntercept\" with parameters.",
465
- "ref": "https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept",
466
- "parameters": [
467
- {
468
- "name": "params",
469
- "type": "`remote.NetworkRemoveInterceptParameters`",
470
- "description": "<pre>\\{<br /> intercept: NetworkIntercept;<br />\\}</pre>",
471
- "required": true
472
- }
473
- ]
474
- }
475
- },
476
- "script.addPreloadScript": {
477
- "socket": {
478
- "command": "scriptAddPreloadScript",
479
- "description": "WebDriver Bidi command to send command method \"script.addPreloadScript\" with parameters.",
480
- "ref": "https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript",
481
- "parameters": [
482
- {
483
- "name": "params",
484
- "type": "`remote.ScriptAddPreloadScriptParameters`",
485
- "description": "<pre>\\{<br /> functionDeclaration: string;<br /> arguments?: ScriptChannelValue[];<br /> contexts?: BrowsingContextBrowsingContext[];<br /> sandbox?: string;<br />\\}</pre>",
486
- "required": true
487
- }
488
- ],
489
- "returns": {
490
- "type": "Object",
491
- "name": "local.ScriptAddPreloadScriptResult",
492
- "description": "Command return value with the following interface:\n ```ts\n {\n script: ScriptPreloadScript;\n }\n ```"
493
- }
494
- }
495
- },
496
- "script.disown": {
497
- "socket": {
498
- "command": "scriptDisown",
499
- "description": "WebDriver Bidi command to send command method \"script.disown\" with parameters.",
500
- "ref": "https://w3c.github.io/webdriver-bidi/#command-script-disown",
501
- "parameters": [
502
- {
503
- "name": "params",
504
- "type": "`remote.ScriptDisownParameters`",
505
- "description": "<pre>\\{<br /> handles: ScriptHandle[];<br /> target: ScriptTarget;<br />\\}</pre>",
506
- "required": true
507
- }
508
- ]
509
- }
510
- },
511
- "script.callFunction": {
512
- "socket": {
513
- "command": "scriptCallFunction",
514
- "description": "WebDriver Bidi command to send command method \"script.callFunction\" with parameters.",
515
- "ref": "https://w3c.github.io/webdriver-bidi/#command-script-callFunction",
516
- "parameters": [
517
- {
518
- "name": "params",
519
- "type": "`remote.ScriptCallFunctionParameters`",
520
- "description": "<pre>\\{<br /> functionDeclaration: string;<br /> awaitPromise: boolean;<br /> target: ScriptTarget;<br /> arguments?: ScriptLocalValue[];<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br /> this?: ScriptLocalValue;<br /> userActivation?: boolean;<br />\\}</pre>",
521
- "required": true
522
- }
523
- ]
524
- }
525
- },
526
- "script.evaluate": {
527
- "socket": {
528
- "command": "scriptEvaluate",
529
- "description": "WebDriver Bidi command to send command method \"script.evaluate\" with parameters.",
530
- "ref": "https://w3c.github.io/webdriver-bidi/#command-script-evaluate",
531
- "parameters": [
532
- {
533
- "name": "params",
534
- "type": "`remote.ScriptEvaluateParameters`",
535
- "description": "<pre>\\{<br /> expression: string;<br /> target: ScriptTarget;<br /> awaitPromise: boolean;<br /> resultOwnership?: ScriptResultOwnership;<br /> serializationOptions?: ScriptSerializationOptions;<br /> userActivation?: boolean;<br />\\}</pre>",
536
- "required": true
537
- }
538
- ],
539
- "returns": {
540
- "type": "Object",
541
- "name": "local.ScriptEvaluateResult",
542
- "description": "Command return value with the following interface:\n ```ts\n ;\n ```"
543
- }
544
- }
545
- },
546
- "script.getRealms": {
547
- "socket": {
548
- "command": "scriptGetRealms",
549
- "description": "WebDriver Bidi command to send command method \"script.getRealms\" with parameters.",
550
- "ref": "https://w3c.github.io/webdriver-bidi/#command-script-getRealms",
551
- "parameters": [
552
- {
553
- "name": "params",
554
- "type": "`remote.ScriptGetRealmsParameters`",
555
- "description": "<pre>\\{<br /> context?: BrowsingContextBrowsingContext;<br /> type?: ScriptRealmType;<br />\\}</pre>",
556
- "required": true
557
- }
558
- ],
559
- "returns": {
560
- "type": "Object",
561
- "name": "local.ScriptGetRealmsResult",
562
- "description": "Command return value with the following interface:\n ```ts\n {\n realms: ScriptRealmInfo[];\n }\n ```"
563
- }
564
- }
565
- },
566
- "script.removePreloadScript": {
567
- "socket": {
568
- "command": "scriptRemovePreloadScript",
569
- "description": "WebDriver Bidi command to send command method \"script.removePreloadScript\" with parameters.",
570
- "ref": "https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript",
571
- "parameters": [
572
- {
573
- "name": "params",
574
- "type": "`remote.ScriptRemovePreloadScriptParameters`",
575
- "description": "<pre>\\{<br /> script: ScriptPreloadScript;<br />\\}</pre>",
576
- "required": true
577
- }
578
- ]
579
- }
580
- },
581
- "input.performActions": {
582
- "socket": {
583
- "command": "inputPerformActions",
584
- "description": "WebDriver Bidi command to send command method \"input.performActions\" with parameters.",
585
- "ref": "https://w3c.github.io/webdriver-bidi/#command-input-performActions",
586
- "parameters": [
587
- {
588
- "name": "params",
589
- "type": "`remote.InputPerformActionsParameters`",
590
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br /> actions: InputSourceActions[];<br />\\}</pre>",
591
- "required": true
592
- }
593
- ]
594
- }
595
- },
596
- "input.releaseActions": {
597
- "socket": {
598
- "command": "inputReleaseActions",
599
- "description": "WebDriver Bidi command to send command method \"input.releaseActions\" with parameters.",
600
- "ref": "https://w3c.github.io/webdriver-bidi/#command-input-releaseActions",
601
- "parameters": [
602
- {
603
- "name": "params",
604
- "type": "`remote.InputReleaseActionsParameters`",
605
- "description": "<pre>\\{<br /> context: BrowsingContextBrowsingContext;<br />\\}</pre>",
606
- "required": true
607
- }
608
- ]
609
- }
610
- }
611
- };
612
- export default protocol;
package/build/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.prod",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "outDir": "build",
6
- "rootDir": "src",
7
- "removeComments": false
8
- },
9
- "include": [
10
- "src/**/*"
11
- ]
12
- }
File without changes