webdriverio 9.8.0 → 9.9.1
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/url.ts"],"names":[],"mappings":"AAKA,KAAK,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,aAAa,GAAG,UAAU,CAAA;AAKpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,wBAAsB,GAAG,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/url.ts"],"names":[],"mappings":"AAKA,KAAK,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,aAAa,GAAG,UAAU,CAAA;AAKpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,wBAAsB,GAAG,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,iBAAsB,GAChC,OAAO,CAAC,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,CA6HrC;AAED,UAAU,iBAAiB;IACvB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE;QACH,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACf,CAAA;IACD;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,MAAM,OAAO,CAAA;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForExist.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForExist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,
|
|
1
|
+
{"version":3,"file":"waitForExist.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForExist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,YAAY,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAqG,EACxG,GAAE,cAAmB,iBAmBzB"}
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAyE5E,CAAA;AAED,eAAO,MAAM,uBAAuB,UAA0E,CAAA;AAE9G,eAAO,MAAM,uBAAuB;;;;;CAKnC,CAAA;AAED,eAAO,MAAM,mBAAmB,2BAA2B,CAAA;AAC3D,eAAO,MAAM,aAAa,QAAQ,CAAA;AAClC,eAAO,MAAM,aAAa,UAAU,CAAA;AAEpC,eAAO,MAAM,YAAY,UAKxB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,sCAA6C,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,GAAG;IACZ;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DG,CAAA"}
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,KAAK,cAAc,MAAM,WAAW,CAAA;AAGhD,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;AAOpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG/C,cAAc,YAAY,CAAA;AAC1B,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA;AAC9B,eAAO,MAAM,kBAAkB,iCAA2B,CAAA;AAE1D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,WACP,YAAY,CAAC,iBAAiB,mBACrB,CAAC,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,iBAAiB,KAAK,cAAc,CAAC,MAAM,KACnH,OAAO,CAAC,WAAW,CAAC,OAAO,CA4C7B,CAAA;AAED,eAAO,MAAM,MAAM,kBAAkC,aAAa,KAAG,OAAO,CAAC,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,KAAK,cAAc,MAAM,WAAW,CAAA;AAGhD,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;AAOpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG/C,cAAc,YAAY,CAAA;AAC1B,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA;AAC9B,eAAO,MAAM,kBAAkB,iCAA2B,CAAA;AAE1D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,WACP,YAAY,CAAC,iBAAiB,mBACrB,CAAC,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,iBAAiB,KAAK,cAAc,CAAC,MAAM,KACnH,OAAO,CAAC,WAAW,CAAC,OAAO,CA4C7B,CAAA;AAED,eAAO,MAAM,MAAM,kBAAkC,aAAa,KAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CA8B/F,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,WACZ,YAAY,CAAC,gCAAgC,2BAC7B;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,KACxD,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAoExC,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
26
26
|
import logger27 from "@wdio/logger";
|
|
27
27
|
import WebDriver, { DEFAULTS } from "webdriver";
|
|
28
28
|
import { validateConfig } from "@wdio/config";
|
|
29
|
-
import { enableFileLogging, wrapCommand as wrapCommand3 } from "@wdio/utils";
|
|
29
|
+
import { enableFileLogging, wrapCommand as wrapCommand3, isBidi } from "@wdio/utils";
|
|
30
30
|
|
|
31
31
|
// src/multiremote.ts
|
|
32
32
|
import zip from "lodash.zip";
|
|
@@ -272,7 +272,6 @@ var getElements = function getElements2(selector, elemResponse, props = { isReac
|
|
|
272
272
|
};
|
|
273
273
|
|
|
274
274
|
// src/constants.ts
|
|
275
|
-
import { resolve } from "import-meta-resolve";
|
|
276
275
|
import { UNICODE_CHARACTERS, HOOK_DEFINITION } from "@wdio/utils";
|
|
277
276
|
var WDIO_DEFAULTS = {
|
|
278
277
|
/**
|
|
@@ -285,8 +284,11 @@ var WDIO_DEFAULTS = {
|
|
|
285
284
|
if (typeof param !== "string") {
|
|
286
285
|
throw new Error("automationProtocol should be a string");
|
|
287
286
|
}
|
|
287
|
+
if (typeof import.meta.resolve !== "function") {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
288
290
|
try {
|
|
289
|
-
|
|
291
|
+
import.meta.resolve(param);
|
|
290
292
|
} catch (err) {
|
|
291
293
|
const error = err instanceof Error ? err : new Error("unknown error");
|
|
292
294
|
throw new Error("Couldn't find automation protocol \"".concat(param, '": ').concat(error.message));
|
|
@@ -1110,7 +1112,7 @@ function debug(commandTimeout = 5e3) {
|
|
|
1110
1112
|
});
|
|
1111
1113
|
}
|
|
1112
1114
|
});
|
|
1113
|
-
return new Promise((
|
|
1115
|
+
return new Promise((resolve) => commandResolve = resolve);
|
|
1114
1116
|
}
|
|
1115
1117
|
|
|
1116
1118
|
// src/commands/browser/deleteCookies.ts
|
|
@@ -3656,8 +3658,8 @@ var Timer = class {
|
|
|
3656
3658
|
__publicField(this, "_timeoutId");
|
|
3657
3659
|
__publicField(this, "_mainTimeoutId");
|
|
3658
3660
|
__publicField(this, "_lastError");
|
|
3659
|
-
__privateSet(this, _retPromise, new Promise((
|
|
3660
|
-
this._resolve =
|
|
3661
|
+
__privateSet(this, _retPromise, new Promise((resolve, reject) => {
|
|
3662
|
+
this._resolve = resolve;
|
|
3661
3663
|
this._reject = reject;
|
|
3662
3664
|
}));
|
|
3663
3665
|
this._start();
|
|
@@ -4251,7 +4253,7 @@ async function newWindow2(url2, { type = "window", windowName = "", windowFeatur
|
|
|
4251
4253
|
|
|
4252
4254
|
// src/commands/browser/pause.ts
|
|
4253
4255
|
function pause(milliseconds = 1e3) {
|
|
4254
|
-
return new Promise((
|
|
4256
|
+
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
4255
4257
|
}
|
|
4256
4258
|
|
|
4257
4259
|
// src/scripts/resq.ts
|
|
@@ -5515,6 +5517,15 @@ async function url(path, options = {}) {
|
|
|
5515
5517
|
context,
|
|
5516
5518
|
url: path,
|
|
5517
5519
|
wait
|
|
5520
|
+
}).catch((err) => {
|
|
5521
|
+
if (
|
|
5522
|
+
// Chrome error message
|
|
5523
|
+
err.message.includes("navigation canceled by concurrent navigation") || // Firefox error message
|
|
5524
|
+
err.message.includes("failed with error: unknown error")
|
|
5525
|
+
) {
|
|
5526
|
+
return this.navigateTo(validateUrl(path));
|
|
5527
|
+
}
|
|
5528
|
+
throw err;
|
|
5518
5529
|
});
|
|
5519
5530
|
if (mock2) {
|
|
5520
5531
|
await mock2.restore();
|
|
@@ -5532,6 +5543,9 @@ async function url(path, options = {}) {
|
|
|
5532
5543
|
if (resetPreloadScript) {
|
|
5533
5544
|
await resetPreloadScript.remove();
|
|
5534
5545
|
}
|
|
5546
|
+
if (!navigation) {
|
|
5547
|
+
return;
|
|
5548
|
+
}
|
|
5535
5549
|
const request = await this.waitUntil(
|
|
5536
5550
|
() => network.getRequestResponseData(navigation.navigation),
|
|
5537
5551
|
/**
|
|
@@ -5986,7 +6000,7 @@ async function getCurrentContexts({
|
|
|
5986
6000
|
}
|
|
5987
6001
|
return parsedContexts;
|
|
5988
6002
|
}
|
|
5989
|
-
await new Promise((
|
|
6003
|
+
await new Promise((resolve) => setTimeout(resolve, retryInterval));
|
|
5990
6004
|
}
|
|
5991
6005
|
throw new Error(
|
|
5992
6006
|
"The packageName '".concat(packageName, "' ").concat(isPackageNameMissing ? "could not be found!" : "matches, but no webview with pages was loaded in this response: " + JSON.stringify(contexts) + "'")
|
|
@@ -7781,16 +7795,21 @@ async function waitForEnabled({
|
|
|
7781
7795
|
}
|
|
7782
7796
|
|
|
7783
7797
|
// src/commands/element/waitForExist.ts
|
|
7784
|
-
function waitForExist({
|
|
7798
|
+
async function waitForExist({
|
|
7785
7799
|
timeout = this.options.waitforTimeout,
|
|
7786
7800
|
interval = this.options.waitforInterval,
|
|
7787
7801
|
reverse = false,
|
|
7788
7802
|
timeoutMsg = 'element ("'.concat(this.selector, '") still ').concat(reverse ? "" : "not ", "existing after ").concat(timeout, "ms")
|
|
7789
7803
|
} = {}) {
|
|
7790
|
-
|
|
7804
|
+
const isExisting2 = await this.waitUntil(
|
|
7791
7805
|
async () => reverse !== await this.isExisting(),
|
|
7792
7806
|
{ timeout, interval, timeoutMsg }
|
|
7793
7807
|
);
|
|
7808
|
+
if (!reverse && isExisting2 && typeof this.selector === "string") {
|
|
7809
|
+
this.elementId = await this.parent.$(this.selector).elementId;
|
|
7810
|
+
delete this.error;
|
|
7811
|
+
}
|
|
7812
|
+
return isExisting2;
|
|
7794
7813
|
}
|
|
7795
7814
|
|
|
7796
7815
|
// src/commands/element/waitForStable.ts
|
|
@@ -8918,6 +8937,9 @@ var attach = async function(attachOptions) {
|
|
|
8918
8937
|
wrapCommand3
|
|
8919
8938
|
);
|
|
8920
8939
|
driver.addLocatorStrategy = addLocatorStrategyHandler(driver);
|
|
8940
|
+
if (isBidi(driver.capabilities) && "_bidiHandler" in driver) {
|
|
8941
|
+
await driver["_bidiHandler"].waitForConnected();
|
|
8942
|
+
}
|
|
8921
8943
|
await registerSessionManager(driver);
|
|
8922
8944
|
return driver;
|
|
8923
8945
|
};
|
package/build/node.js
CHANGED
|
@@ -119,8 +119,8 @@ async function uploadFile(localPath) {
|
|
|
119
119
|
}
|
|
120
120
|
const zipData = [];
|
|
121
121
|
const source = fs5.createReadStream(localPath);
|
|
122
|
-
return new Promise((
|
|
123
|
-
archiver("zip").on("error", (err) => reject(err)).on("data", (data) => zipData.push(data)).on("end", () => this.file(Buffer.concat(zipData).toString("base64")).then((localPath2) =>
|
|
122
|
+
return new Promise((resolve, reject) => {
|
|
123
|
+
archiver("zip").on("error", (err) => reject(err)).on("data", (data) => zipData.push(data)).on("end", () => this.file(Buffer.concat(zipData).toString("base64")).then((localPath2) => resolve(localPath2), reject)).append(source, { name: path3.basename(localPath) }).finalize();
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -496,7 +496,7 @@ async function saveElementScreenshot(filepath) {
|
|
|
496
496
|
import logger28 from "@wdio/logger";
|
|
497
497
|
import WebDriver, { DEFAULTS } from "webdriver";
|
|
498
498
|
import { validateConfig } from "@wdio/config";
|
|
499
|
-
import { enableFileLogging, wrapCommand as wrapCommand3 } from "@wdio/utils";
|
|
499
|
+
import { enableFileLogging, wrapCommand as wrapCommand3, isBidi } from "@wdio/utils";
|
|
500
500
|
|
|
501
501
|
// src/multiremote.ts
|
|
502
502
|
import zip from "lodash.zip";
|
|
@@ -741,7 +741,6 @@ var getElements = function getElements2(selector, elemResponse, props = { isReac
|
|
|
741
741
|
};
|
|
742
742
|
|
|
743
743
|
// src/constants.ts
|
|
744
|
-
import { resolve } from "import-meta-resolve";
|
|
745
744
|
import { UNICODE_CHARACTERS, HOOK_DEFINITION } from "@wdio/utils";
|
|
746
745
|
var WDIO_DEFAULTS = {
|
|
747
746
|
/**
|
|
@@ -754,8 +753,11 @@ var WDIO_DEFAULTS = {
|
|
|
754
753
|
if (typeof param !== "string") {
|
|
755
754
|
throw new Error("automationProtocol should be a string");
|
|
756
755
|
}
|
|
756
|
+
if (typeof import.meta.resolve !== "function") {
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
757
759
|
try {
|
|
758
|
-
|
|
760
|
+
import.meta.resolve(param);
|
|
759
761
|
} catch (err) {
|
|
760
762
|
const error = err instanceof Error ? err : new Error("unknown error");
|
|
761
763
|
throw new Error(`Couldn't find automation protocol "${param}": ${error.message}`);
|
|
@@ -1565,7 +1567,7 @@ function debug(commandTimeout = 5e3) {
|
|
|
1565
1567
|
});
|
|
1566
1568
|
}
|
|
1567
1569
|
});
|
|
1568
|
-
return new Promise((
|
|
1570
|
+
return new Promise((resolve) => commandResolve = resolve);
|
|
1569
1571
|
}
|
|
1570
1572
|
|
|
1571
1573
|
// src/commands/browser/deleteCookies.ts
|
|
@@ -3794,8 +3796,8 @@ var Timer = class {
|
|
|
3794
3796
|
this._timeout = _timeout;
|
|
3795
3797
|
this._fn = _fn;
|
|
3796
3798
|
this._leading = _leading;
|
|
3797
|
-
this.#retPromise = new Promise((
|
|
3798
|
-
this._resolve =
|
|
3799
|
+
this.#retPromise = new Promise((resolve, reject) => {
|
|
3800
|
+
this._resolve = resolve;
|
|
3799
3801
|
this._reject = reject;
|
|
3800
3802
|
});
|
|
3801
3803
|
this._start();
|
|
@@ -4374,7 +4376,7 @@ async function newWindow(url2, { type = "window", windowName = "", windowFeature
|
|
|
4374
4376
|
|
|
4375
4377
|
// src/commands/browser/pause.ts
|
|
4376
4378
|
function pause(milliseconds = 1e3) {
|
|
4377
|
-
return new Promise((
|
|
4379
|
+
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
4378
4380
|
}
|
|
4379
4381
|
|
|
4380
4382
|
// src/commands/browser/react$$.ts
|
|
@@ -5536,6 +5538,15 @@ async function url(path4, options = {}) {
|
|
|
5536
5538
|
context,
|
|
5537
5539
|
url: path4,
|
|
5538
5540
|
wait
|
|
5541
|
+
}).catch((err) => {
|
|
5542
|
+
if (
|
|
5543
|
+
// Chrome error message
|
|
5544
|
+
err.message.includes("navigation canceled by concurrent navigation") || // Firefox error message
|
|
5545
|
+
err.message.includes("failed with error: unknown error")
|
|
5546
|
+
) {
|
|
5547
|
+
return this.navigateTo(validateUrl(path4));
|
|
5548
|
+
}
|
|
5549
|
+
throw err;
|
|
5539
5550
|
});
|
|
5540
5551
|
if (mock2) {
|
|
5541
5552
|
await mock2.restore();
|
|
@@ -5553,6 +5564,9 @@ async function url(path4, options = {}) {
|
|
|
5553
5564
|
if (resetPreloadScript) {
|
|
5554
5565
|
await resetPreloadScript.remove();
|
|
5555
5566
|
}
|
|
5567
|
+
if (!navigation) {
|
|
5568
|
+
return;
|
|
5569
|
+
}
|
|
5556
5570
|
const request = await this.waitUntil(
|
|
5557
5571
|
() => network.getRequestResponseData(navigation.navigation),
|
|
5558
5572
|
/**
|
|
@@ -6021,7 +6035,7 @@ async function getCurrentContexts({
|
|
|
6021
6035
|
}
|
|
6022
6036
|
return parsedContexts;
|
|
6023
6037
|
}
|
|
6024
|
-
await new Promise((
|
|
6038
|
+
await new Promise((resolve) => setTimeout(resolve, retryInterval));
|
|
6025
6039
|
}
|
|
6026
6040
|
throw new Error(
|
|
6027
6041
|
`The packageName '${packageName}' ${isPackageNameMissing ? "could not be found!" : "matches, but no webview with pages was loaded in this response: " + JSON.stringify(contexts) + "'"}`
|
|
@@ -7480,16 +7494,21 @@ async function waitForEnabled({
|
|
|
7480
7494
|
}
|
|
7481
7495
|
|
|
7482
7496
|
// src/commands/element/waitForExist.ts
|
|
7483
|
-
function waitForExist({
|
|
7497
|
+
async function waitForExist({
|
|
7484
7498
|
timeout = this.options.waitforTimeout,
|
|
7485
7499
|
interval = this.options.waitforInterval,
|
|
7486
7500
|
reverse = false,
|
|
7487
7501
|
timeoutMsg = `element ("${this.selector}") still ${reverse ? "" : "not "}existing after ${timeout}ms`
|
|
7488
7502
|
} = {}) {
|
|
7489
|
-
|
|
7503
|
+
const isExisting2 = await this.waitUntil(
|
|
7490
7504
|
async () => reverse !== await this.isExisting(),
|
|
7491
7505
|
{ timeout, interval, timeoutMsg }
|
|
7492
7506
|
);
|
|
7507
|
+
if (!reverse && isExisting2 && typeof this.selector === "string") {
|
|
7508
|
+
this.elementId = await this.parent.$(this.selector).elementId;
|
|
7509
|
+
delete this.error;
|
|
7510
|
+
}
|
|
7511
|
+
return isExisting2;
|
|
7493
7512
|
}
|
|
7494
7513
|
|
|
7495
7514
|
// src/commands/element/waitForStable.ts
|
|
@@ -8599,6 +8618,9 @@ var attach = async function(attachOptions) {
|
|
|
8599
8618
|
wrapCommand3
|
|
8600
8619
|
);
|
|
8601
8620
|
driver.addLocatorStrategy = addLocatorStrategyHandler(driver);
|
|
8621
|
+
if (isBidi(driver.capabilities) && "_bidiHandler" in driver) {
|
|
8622
|
+
await driver["_bidiHandler"].waitForConnected();
|
|
8623
|
+
}
|
|
8602
8624
|
await registerSessionManager(driver);
|
|
8603
8625
|
return driver;
|
|
8604
8626
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriverio",
|
|
3
3
|
"description": "Next-gen browser and mobile automation test framework for Node.js",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.9.1",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@types/node": "^20.11.30",
|
|
79
79
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
80
|
-
"@wdio/config": "9.
|
|
80
|
+
"@wdio/config": "9.9.0",
|
|
81
81
|
"@wdio/logger": "9.4.4",
|
|
82
82
|
"@wdio/protocols": "9.7.0",
|
|
83
83
|
"@wdio/repl": "9.4.4",
|
|
84
|
-
"@wdio/types": "9.
|
|
85
|
-
"@wdio/utils": "9.
|
|
84
|
+
"@wdio/types": "9.9.0",
|
|
85
|
+
"@wdio/utils": "9.9.0",
|
|
86
86
|
"archiver": "^7.0.1",
|
|
87
87
|
"aria-query": "^5.3.0",
|
|
88
88
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -90,18 +90,16 @@
|
|
|
90
90
|
"css-value": "^0.0.1",
|
|
91
91
|
"grapheme-splitter": "^1.0.4",
|
|
92
92
|
"htmlfy": "^0.6.0",
|
|
93
|
-
"import-meta-resolve": "^4.0.0",
|
|
94
93
|
"is-plain-obj": "^4.1.0",
|
|
95
94
|
"jszip": "^3.10.1",
|
|
96
95
|
"lodash.clonedeep": "^4.5.0",
|
|
97
96
|
"lodash.zip": "^4.2.0",
|
|
98
|
-
"minimatch": "^9.0.3",
|
|
99
97
|
"query-selector-shadow-dom": "^1.0.1",
|
|
100
98
|
"resq": "^1.11.0",
|
|
101
99
|
"rgb2hex": "0.2.5",
|
|
102
100
|
"serialize-error": "^11.0.3",
|
|
103
101
|
"urlpattern-polyfill": "^10.0.0",
|
|
104
|
-
"webdriver": "9.
|
|
102
|
+
"webdriver": "9.9.1"
|
|
105
103
|
},
|
|
106
104
|
"peerDependencies": {
|
|
107
105
|
"puppeteer-core": "^22.3.0"
|
|
@@ -111,5 +109,5 @@
|
|
|
111
109
|
"optional": true
|
|
112
110
|
}
|
|
113
111
|
},
|
|
114
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "a7f0c07b223c9a4a7774fead36ec82296a99177f"
|
|
115
113
|
}
|