webdriver 9.1.2 → 9.1.3

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/build/index.js CHANGED
@@ -18,7 +18,7 @@ import { EventEmitter } from "node:events";
18
18
  import { WebDriverProtocol as WebDriverProtocol2 } from "@wdio/protocols";
19
19
  import { URL } from "node:url";
20
20
  import logger3 from "@wdio/logger";
21
- import { transformCommandLogResult as transformCommandLogResult2 } from "@wdio/utils";
21
+ import { transformCommandLogResult as transformCommandLogResult2, sleep } from "@wdio/utils";
22
22
 
23
23
  // src/request/error.ts
24
24
  import { transformCommandLogResult } from "@wdio/utils";
@@ -1176,7 +1176,7 @@ var SHADOW_ELEMENT_KEY = "shadow-6066-11e4-a52e-4f735466cecf";
1176
1176
  // package.json
1177
1177
  var package_default = {
1178
1178
  name: "webdriver",
1179
- version: "9.1.1",
1179
+ version: "9.1.2",
1180
1180
  description: "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
1181
1181
  author: "Christian Bromann <mail@bromann.dev>",
1182
1182
  homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
@@ -1317,13 +1317,16 @@ var WebDriverRequest = class extends EventEmitter {
1317
1317
  if (this.#requestTimeout) {
1318
1318
  clearTimeout(this.#requestTimeout);
1319
1319
  }
1320
- const retry = (error2) => {
1320
+ const retry = async (error2) => {
1321
1321
  if (retryCount >= totalRetryCount || error2.message.includes("invalid session id")) {
1322
1322
  log3.error(error2.message);
1323
1323
  this.emit("response", { error: error2 });
1324
1324
  this.emit("performance", { request: fullRequestOptions, durationMillisecond, success: false, error: error2, retryCount });
1325
1325
  throw error2;
1326
1326
  }
1327
+ if (retryCount > 0) {
1328
+ await sleep(Math.min(1e4, 250 * Math.pow(2, retryCount)));
1329
+ }
1327
1330
  ++retryCount;
1328
1331
  this.emit("retry", { error: error2, retryCount });
1329
1332
  this.emit("performance", { request: fullRequestOptions, durationMillisecond, success: false, error: error2, retryCount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CAAC,kBAAkB,IAAI,MAAM;YAIxB,QAAQ;CAoIzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver",
3
- "version": "9.1.2",
3
+ "version": "9.1.3",
4
4
  "description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
@@ -35,13 +35,13 @@
35
35
  "dependencies": {
36
36
  "@types/node": "^20.1.0",
37
37
  "@types/ws": "^8.5.3",
38
- "@wdio/config": "9.1.2",
39
- "@wdio/logger": "9.1.0",
38
+ "@wdio/config": "9.1.3",
39
+ "@wdio/logger": "9.1.3",
40
40
  "@wdio/protocols": "9.0.8",
41
- "@wdio/types": "9.1.2",
42
- "@wdio/utils": "9.1.2",
41
+ "@wdio/types": "9.1.3",
42
+ "@wdio/utils": "9.1.3",
43
43
  "deepmerge-ts": "^7.0.3",
44
44
  "ws": "^8.8.0"
45
45
  },
46
- "gitHead": "e009b5102f9f98b99fa62df870ce7f3f5bc1b99a"
46
+ "gitHead": "db677c6008e388301aba23f655679f4c5b6ea023"
47
47
  }