webdriver 8.22.0 → 8.23.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@ WebDriver
3
3
 
4
4
  > A lightweight, non-opinionated implementation of the [WebDriver](https://w3c.github.io/webdriver/webdriver-spec.html) and [WebDriver BiDi](https://w3c.github.io/webdriver-bidi/) specification including mobile commands supported by [Appium](http://appium.io/)
5
5
 
6
- There are [tons](https://github.com/christian-bromann/awesome-selenium#javascript) of Selenium and WebDriver binding implementations in the Node.js world. Every one of them have an opinionated API and recommended way to use. This binding is the most non-opinionated you will find as it just represents the [WebDriver specification](https://w3c.github.io/webdriver/webdriver-spec.html) and doesn't come with any extra or higher level abstraction. It is lightweight and comes with support for the [WebDriver specification](https://w3c.github.io/webdriver/webdriver-spec.html) and Appium's [Mobile JSONWire Protocol](https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md).
6
+ There are [tons](https://github.com/christian-bromann/awesome-selenium#javascript) of Selenium and WebDriver binding implementations in the Node.js world. Every one of them has an opinionated API and recommended way to use it. This binding is the most non-opinionated you will find as it just represents the [WebDriver specification](https://w3c.github.io/webdriver/webdriver-spec.html) and doesn't come with any extra or higher-level abstraction. It is lightweight and comes with support for the [WebDriver specification](https://w3c.github.io/webdriver/webdriver-spec.html) and Appium's [Mobile JSONWire Protocol](https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md).
7
7
 
8
8
  The package supports the following protocols:
9
9
 
@@ -16,7 +16,7 @@ The package supports the following protocols:
16
16
  - [JSONWireProtocol](https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol) (depcrecated)
17
17
  - [Mobile JSONWireProtocol](https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md) (depcrecated)
18
18
 
19
- Commands are added to the clients protocol based on assumptions of provided capabilities. You can find more details about the commands by checking out the [`@wdio/protocols`](https://www.npmjs.com/package/@wdio/protocols) package. All commands come with TypeScript support.
19
+ Commands are added to the client's protocol based on assumptions of provided capabilities. You can find more details about the commands by checking out the [`@wdio/protocols`](https://www.npmjs.com/package/@wdio/protocols) package. All commands come with TypeScript support.
20
20
 
21
21
  ## Install
22
22
 
@@ -68,9 +68,9 @@ const browser = await WebDriver.newSession({
68
68
  await browser.sessionSubscribe({ events: ['log.entryAdded'] })
69
69
 
70
70
  /**
71
- * returns: {"method":"log.entryAdded","params":{"type":"console","method":"log","realm":null,"args":[{"type":"string","value":"Hello Bidi"}],"level":"info","text":"Hello Bidi","timestamp":1657282076037}}
71
+ * returns: {"type":"console","method":"log","realm":null,"args":[{"type":"string","value":"Hello Bidi"}],"level":"info","text":"Hello Bidi","timestamp":1657282076037}
72
72
  */
73
- browser.on('message', (data) => console.log('received %s', data))
73
+ browser.on('log.entryAdded', (entryAdded) => console.log('received %s', entryAdded))
74
74
 
75
75
  await browser.executeScript('console.log("Hello Bidi")', [])
76
76
  await browser.deleteSession()
@@ -1,16 +1,14 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- import { EventEmitter } from 'node:events';
3
1
  import WebSocket from 'ws';
4
2
  import type { CommandData } from './remoteTypes.js';
5
3
  import type { CommandResponse } from './localTypes.js';
6
- export declare class BidiCore extends EventEmitter {
4
+ export declare class BidiCore {
7
5
  #private;
8
6
  private _webSocketUrl;
9
7
  constructor(_webSocketUrl: string);
10
8
  connect(): Promise<void>;
11
9
  get socket(): WebSocket;
12
10
  get isConnected(): boolean;
13
- send(params: CommandData): Promise<CommandResponse>;
14
- sendAsync(params: CommandData): number;
11
+ send(params: Omit<CommandData, 'id'>): Promise<CommandResponse>;
12
+ sendAsync(params: Omit<CommandData, 'id'>): number;
15
13
  }
16
14
  //# sourceMappingURL=core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/bidi/core.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,SAAS,MAAM,IAAI,CAAA;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAKtD,qBAAa,QAAS,SAAQ,YAAY;;IAKzB,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,MAAM;IAMnC,OAAO;IAQd,IAAI,MAAM,cAET;IAED,IAAI,WAAW,YAEd;IAEM,IAAI,CAAE,MAAM,EAAE,WAAW;IA4BzB,SAAS,CAAE,MAAM,EAAE,WAAW;CASxC"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/bidi/core.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,IAAI,CAAA;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAKtD,qBAAa,QAAQ;;IAKJ,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,MAAM;IAKnC,OAAO;IAQd,IAAI,MAAM,cAET;IAED,IAAI,WAAW,YAEd;IAEM,IAAI,CAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC;IA4BrC,SAAS,CAAE,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC;CAUpD"}
@@ -1,15 +1,13 @@
1
- import { EventEmitter } from 'node:events';
2
1
  import WebSocket from 'ws';
3
2
  import logger from '@wdio/logger';
4
3
  const log = logger('webdriver');
5
4
  const RESPONSE_TIMEOUT = 1000 * 60;
6
- export class BidiCore extends EventEmitter {
5
+ export class BidiCore {
7
6
  _webSocketUrl;
8
7
  #id = 0;
9
8
  #ws;
10
9
  #isConnected = false;
11
10
  constructor(_webSocketUrl) {
12
- super();
13
11
  this._webSocketUrl = _webSocketUrl;
14
12
  log.info(`Connect to webSocketUrl ${this._webSocketUrl}`);
15
13
  this.#ws = new WebSocket(this._webSocketUrl);
@@ -58,6 +56,7 @@ export class BidiCore extends EventEmitter {
58
56
  if (!this.#isConnected) {
59
57
  throw new Error('No connection to WebDriver Bidi was established');
60
58
  }
59
+ log.info('BIDI COMMAND', params.method, JSON.stringify(params.params));
61
60
  const id = ++this.#id;
62
61
  this.#ws.send(JSON.stringify({ id, ...params }));
63
62
  return id;
@@ -1,17 +1,3 @@
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
1
  /**
16
2
  * !!! PLEASE DO NOT EDIT THIS FILE !!!
17
3
  *
@@ -72,6 +58,13 @@ export declare class BidiHandler extends BidiCore {
72
58
  * @returns `Promise<local.EmptyResult>`
73
59
  **/
74
60
  browserClose(params: remote.EmptyParams): Promise<local.EmptyResult>;
61
+ /**
62
+ * WebDriver Bidi command to send command method "browsingContext.activate" with parameters.
63
+ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate
64
+ * @param params `remote.BrowsingContextActivateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate | command parameter}
65
+ * @returns `Promise<local.EmptyResult>`
66
+ **/
67
+ browsingContextActivate(params: remote.BrowsingContextActivateParameters): Promise<local.EmptyResult>;
75
68
  /**
76
69
  * WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters.
77
70
  * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot
@@ -107,6 +100,13 @@ export declare class BidiHandler extends BidiCore {
107
100
  * @returns `Promise<local.EmptyResult>`
108
101
  **/
109
102
  browsingContextHandleUserPrompt(params: remote.BrowsingContextHandleUserPromptParameters): Promise<local.EmptyResult>;
103
+ /**
104
+ * WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters.
105
+ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes
106
+ * @param params `remote.BrowsingContextLocateNodesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes | command parameter}
107
+ * @returns `Promise<local.BrowsingContextLocateNodesResult>`
108
+ **/
109
+ browsingContextLocateNodes(params: remote.BrowsingContextLocateNodesParameters): Promise<local.BrowsingContextLocateNodesResult>;
110
110
  /**
111
111
  * WebDriver Bidi command to send command method "browsingContext.navigate" with parameters.
112
112
  * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate
@@ -128,13 +128,76 @@ export declare class BidiHandler extends BidiCore {
128
128
  * @returns `Promise<local.EmptyResult>`
129
129
  **/
130
130
  browsingContextReload(params: remote.BrowsingContextReloadParameters): Promise<local.EmptyResult>;
131
+ /**
132
+ * WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters.
133
+ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport
134
+ * @param params `remote.BrowsingContextSetViewportParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport | command parameter}
135
+ * @returns `Promise<local.EmptyResult>`
136
+ **/
137
+ browsingContextSetViewport(params: remote.BrowsingContextSetViewportParameters): Promise<local.EmptyResult>;
138
+ /**
139
+ * WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters.
140
+ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory
141
+ * @param params `remote.BrowsingContextTraverseHistoryParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory | command parameter}
142
+ * @returns `Promise<local.BrowsingContextTraverseHistoryResult>`
143
+ **/
144
+ browsingContextTraverseHistory(params: remote.BrowsingContextTraverseHistoryParameters): Promise<local.BrowsingContextTraverseHistoryResult>;
145
+ /**
146
+ * WebDriver Bidi command to send command method "network.addIntercept" with parameters.
147
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-addIntercept
148
+ * @param params `remote.NetworkAddInterceptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-addIntercept | command parameter}
149
+ * @returns `Promise<local.NetworkAddInterceptResult>`
150
+ **/
151
+ networkAddIntercept(params: remote.NetworkAddInterceptParameters): Promise<local.NetworkAddInterceptResult>;
152
+ /**
153
+ * WebDriver Bidi command to send command method "network.continueRequest" with parameters.
154
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-continueRequest
155
+ * @param params `remote.NetworkContinueRequestParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueRequest | command parameter}
156
+ * @returns `Promise<local.EmptyResult>`
157
+ **/
158
+ networkContinueRequest(params: remote.NetworkContinueRequestParameters): Promise<local.EmptyResult>;
159
+ /**
160
+ * WebDriver Bidi command to send command method "network.continueResponse" with parameters.
161
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-continueResponse
162
+ * @param params `remote.NetworkContinueResponseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueResponse | command parameter}
163
+ * @returns `Promise<local.EmptyResult>`
164
+ **/
165
+ networkContinueResponse(params: remote.NetworkContinueResponseParameters): Promise<local.EmptyResult>;
166
+ /**
167
+ * WebDriver Bidi command to send command method "network.continueWithAuth" with parameters.
168
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth
169
+ * @param params `remote.NetworkContinueWithAuthParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth | command parameter}
170
+ * @returns `Promise<local.EmptyResult>`
171
+ **/
172
+ networkContinueWithAuth(params: remote.NetworkContinueWithAuthParameters): Promise<local.EmptyResult>;
173
+ /**
174
+ * WebDriver Bidi command to send command method "network.failRequest" with parameters.
175
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-failRequest
176
+ * @param params `remote.NetworkFailRequestParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-failRequest | command parameter}
177
+ * @returns `Promise<local.EmptyResult>`
178
+ **/
179
+ networkFailRequest(params: remote.NetworkFailRequestParameters): Promise<local.EmptyResult>;
180
+ /**
181
+ * WebDriver Bidi command to send command method "network.provideResponse" with parameters.
182
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-provideResponse
183
+ * @param params `remote.NetworkProvideResponseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-provideResponse | command parameter}
184
+ * @returns `Promise<local.EmptyResult>`
185
+ **/
186
+ networkProvideResponse(params: remote.NetworkProvideResponseParameters): Promise<local.EmptyResult>;
187
+ /**
188
+ * WebDriver Bidi command to send command method "network.removeIntercept" with parameters.
189
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept
190
+ * @param params `remote.NetworkRemoveInterceptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept | command parameter}
191
+ * @returns `Promise<local.EmptyResult>`
192
+ **/
193
+ networkRemoveIntercept(params: remote.NetworkRemoveInterceptParameters): Promise<local.EmptyResult>;
131
194
  /**
132
195
  * WebDriver Bidi command to send command method "script.addPreloadScript" with parameters.
133
196
  * @url https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript
134
197
  * @param params `remote.ScriptAddPreloadScriptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript | command parameter}
135
- * @returns `Promise<local.EmptyResult>`
198
+ * @returns `Promise<local.ScriptAddPreloadScriptResult>`
136
199
  **/
137
- scriptAddPreloadScriptCommand(params: remote.ScriptAddPreloadScriptParameters): Promise<local.EmptyResult>;
200
+ scriptAddPreloadScript(params: remote.ScriptAddPreloadScriptParameters): Promise<local.ScriptAddPreloadScriptResult>;
138
201
  /**
139
202
  * WebDriver Bidi command to send command method "script.disown" with parameters.
140
203
  * @url https://w3c.github.io/webdriver-bidi/#command-script-disown
@@ -169,7 +232,7 @@ export declare class BidiHandler extends BidiCore {
169
232
  * @param params `remote.ScriptRemovePreloadScriptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript | command parameter}
170
233
  * @returns `Promise<local.EmptyResult>`
171
234
  **/
172
- scriptRemovePreloadScriptCommand(params: remote.ScriptRemovePreloadScriptParameters): Promise<local.EmptyResult>;
235
+ scriptRemovePreloadScript(params: remote.ScriptRemovePreloadScriptParameters): Promise<local.EmptyResult>;
173
236
  /**
174
237
  * WebDriver Bidi command to send command method "input.performActions" with parameters.
175
238
  * @url https://w3c.github.io/webdriver-bidi/#command-input-performActions
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/bidi/handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,KAAK,MAAM,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAEpC,qBAAa,WAAY,SAAQ,QAAQ;IACrC;;;;;QAKI;IACE,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC;IASnF;;;;;QAKI;IACE,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC;IAStF;;;;;QAKI;IACE,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IASxE;;;;;QAKI;IACE,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IAS7F;;;;;QAKI;IACE,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IAS/F;;;;;QAKI;IACE,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IAS1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CAAgC,GAAG,OAAO,CAAC,KAAK,CAAC,4BAA4B,CAAC;IAS1H;;;;;QAKI;IACE,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,sBAAsB,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IASrF;;;;;QAKI;IACE,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,4BAA4B,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IASjG;;;;;QAKI;IACE,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,wBAAwB,GAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC;IASlG;;;;;QAKI;IACE,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,yBAAyB,GAAG,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC;IASrG;;;;;QAKI;IACE,yBAAyB,CAAC,MAAM,EAAE,MAAM,CAAC,mCAAmC,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IAS/G;;;;;QAKI;IACE,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,6BAA6B,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IASnG;;;;;QAKI;IACE,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,6BAA6B,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;CAQtG"}
@@ -92,6 +92,19 @@ export class BidiHandler extends BidiCore {
92
92
  });
93
93
  return result.result;
94
94
  }
95
+ /**
96
+ * WebDriver Bidi command to send command method "browsingContext.activate" with parameters.
97
+ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate
98
+ * @param params `remote.BrowsingContextActivateParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-activate | command parameter}
99
+ * @returns `Promise<local.EmptyResult>`
100
+ **/
101
+ async browsingContextActivate(params) {
102
+ const result = await this.send({
103
+ method: 'browsingContext.activate',
104
+ params
105
+ });
106
+ return result.result;
107
+ }
95
108
  /**
96
109
  * WebDriver Bidi command to send command method "browsingContext.captureScreenshot" with parameters.
97
110
  * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-captureScreenshot
@@ -157,6 +170,19 @@ export class BidiHandler extends BidiCore {
157
170
  });
158
171
  return result.result;
159
172
  }
173
+ /**
174
+ * WebDriver Bidi command to send command method "browsingContext.locateNodes" with parameters.
175
+ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes
176
+ * @param params `remote.BrowsingContextLocateNodesParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-locateNodes | command parameter}
177
+ * @returns `Promise<local.BrowsingContextLocateNodesResult>`
178
+ **/
179
+ async browsingContextLocateNodes(params) {
180
+ const result = await this.send({
181
+ method: 'browsingContext.locateNodes',
182
+ params
183
+ });
184
+ return result.result;
185
+ }
160
186
  /**
161
187
  * WebDriver Bidi command to send command method "browsingContext.navigate" with parameters.
162
188
  * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-navigate
@@ -196,13 +222,130 @@ export class BidiHandler extends BidiCore {
196
222
  });
197
223
  return result.result;
198
224
  }
225
+ /**
226
+ * WebDriver Bidi command to send command method "browsingContext.setViewport" with parameters.
227
+ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport
228
+ * @param params `remote.BrowsingContextSetViewportParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-setViewport | command parameter}
229
+ * @returns `Promise<local.EmptyResult>`
230
+ **/
231
+ async browsingContextSetViewport(params) {
232
+ const result = await this.send({
233
+ method: 'browsingContext.setViewport',
234
+ params
235
+ });
236
+ return result.result;
237
+ }
238
+ /**
239
+ * WebDriver Bidi command to send command method "browsingContext.traverseHistory" with parameters.
240
+ * @url https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory
241
+ * @param params `remote.BrowsingContextTraverseHistoryParameters` {@link https://w3c.github.io/webdriver-bidi/#command-browsingContext-traverseHistory | command parameter}
242
+ * @returns `Promise<local.BrowsingContextTraverseHistoryResult>`
243
+ **/
244
+ async browsingContextTraverseHistory(params) {
245
+ const result = await this.send({
246
+ method: 'browsingContext.traverseHistory',
247
+ params
248
+ });
249
+ return result.result;
250
+ }
251
+ /**
252
+ * WebDriver Bidi command to send command method "network.addIntercept" with parameters.
253
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-addIntercept
254
+ * @param params `remote.NetworkAddInterceptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-addIntercept | command parameter}
255
+ * @returns `Promise<local.NetworkAddInterceptResult>`
256
+ **/
257
+ async networkAddIntercept(params) {
258
+ const result = await this.send({
259
+ method: 'network.addIntercept',
260
+ params
261
+ });
262
+ return result.result;
263
+ }
264
+ /**
265
+ * WebDriver Bidi command to send command method "network.continueRequest" with parameters.
266
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-continueRequest
267
+ * @param params `remote.NetworkContinueRequestParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueRequest | command parameter}
268
+ * @returns `Promise<local.EmptyResult>`
269
+ **/
270
+ async networkContinueRequest(params) {
271
+ const result = await this.send({
272
+ method: 'network.continueRequest',
273
+ params
274
+ });
275
+ return result.result;
276
+ }
277
+ /**
278
+ * WebDriver Bidi command to send command method "network.continueResponse" with parameters.
279
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-continueResponse
280
+ * @param params `remote.NetworkContinueResponseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueResponse | command parameter}
281
+ * @returns `Promise<local.EmptyResult>`
282
+ **/
283
+ async networkContinueResponse(params) {
284
+ const result = await this.send({
285
+ method: 'network.continueResponse',
286
+ params
287
+ });
288
+ return result.result;
289
+ }
290
+ /**
291
+ * WebDriver Bidi command to send command method "network.continueWithAuth" with parameters.
292
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth
293
+ * @param params `remote.NetworkContinueWithAuthParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-continueWithAuth | command parameter}
294
+ * @returns `Promise<local.EmptyResult>`
295
+ **/
296
+ async networkContinueWithAuth(params) {
297
+ const result = await this.send({
298
+ method: 'network.continueWithAuth',
299
+ params
300
+ });
301
+ return result.result;
302
+ }
303
+ /**
304
+ * WebDriver Bidi command to send command method "network.failRequest" with parameters.
305
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-failRequest
306
+ * @param params `remote.NetworkFailRequestParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-failRequest | command parameter}
307
+ * @returns `Promise<local.EmptyResult>`
308
+ **/
309
+ async networkFailRequest(params) {
310
+ const result = await this.send({
311
+ method: 'network.failRequest',
312
+ params
313
+ });
314
+ return result.result;
315
+ }
316
+ /**
317
+ * WebDriver Bidi command to send command method "network.provideResponse" with parameters.
318
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-provideResponse
319
+ * @param params `remote.NetworkProvideResponseParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-provideResponse | command parameter}
320
+ * @returns `Promise<local.EmptyResult>`
321
+ **/
322
+ async networkProvideResponse(params) {
323
+ const result = await this.send({
324
+ method: 'network.provideResponse',
325
+ params
326
+ });
327
+ return result.result;
328
+ }
329
+ /**
330
+ * WebDriver Bidi command to send command method "network.removeIntercept" with parameters.
331
+ * @url https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept
332
+ * @param params `remote.NetworkRemoveInterceptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-network-removeIntercept | command parameter}
333
+ * @returns `Promise<local.EmptyResult>`
334
+ **/
335
+ async networkRemoveIntercept(params) {
336
+ const result = await this.send({
337
+ method: 'network.removeIntercept',
338
+ params
339
+ });
340
+ return result.result;
341
+ }
199
342
  /**
200
343
  * WebDriver Bidi command to send command method "script.addPreloadScript" with parameters.
201
344
  * @url https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript
202
345
  * @param params `remote.ScriptAddPreloadScriptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-addPreloadScript | command parameter}
203
- * @returns `Promise<local.EmptyResult>`
346
+ * @returns `Promise<local.ScriptAddPreloadScriptResult>`
204
347
  **/
205
- async scriptAddPreloadScriptCommand(params) {
348
+ async scriptAddPreloadScript(params) {
206
349
  const result = await this.send({
207
350
  method: 'script.addPreloadScript',
208
351
  params
@@ -267,7 +410,7 @@ export class BidiHandler extends BidiCore {
267
410
  * @param params `remote.ScriptRemovePreloadScriptParameters` {@link https://w3c.github.io/webdriver-bidi/#command-script-removePreloadScript | command parameter}
268
411
  * @returns `Promise<local.EmptyResult>`
269
412
  **/
270
- async scriptRemovePreloadScriptCommand(params) {
413
+ async scriptRemovePreloadScript(params) {
271
414
  const result = await this.send({
272
415
  method: 'script.removePreloadScript',
273
416
  params