webdriver 9.4.4 → 9.5.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.
- package/build/index.d.ts.map +1 -1
- package/build/index.js +10 -3
- package/build/node.js +10 -3
- package/build/utils.d.ts +5 -2
- package/build/utils.d.ts.map +1 -1
- package/package.json +5 -5
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAW,MAAM,aAAa,CAAA;AAExD,OAAO,OAAO,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAyB,YAAY,EAAE,kBAAkB,EAAsB,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACxI,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAgB,MAAM,YAAY,CAAA;AAIrE,MAAM,CAAC,OAAO,OAAO,SAAS;WACb,UAAU,CACnB,OAAO,EAAE,YAAY,CAAC,YAAY,EAClC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,oBAAoB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAC/C,OAAO,CAAC,MAAM,CAAC;IAuElB;;OAEG;IACH,MAAM,CAAC,eAAe,CAClB,OAAO,CAAC,EAAE,aAAa,EACvB,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAClC,aAAa,KAAK,EAClB,cAAc,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GACzC,MAAM;
|
|
1
|
+
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AE,SAAS,EAAE,CAAA;AACzG,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1206,7 +1206,7 @@ var getSessionError = (err, params = {}) => {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
return err.message;
|
|
1208
1208
|
};
|
|
1209
|
-
function initiateBidi(socketUrl, strictSSL = true) {
|
|
1209
|
+
function initiateBidi(socketUrl, strictSSL = true, userHeaders) {
|
|
1210
1210
|
const isUnitTesting = process.env.WDIO_UNIT_TESTS;
|
|
1211
1211
|
if (isUnitTesting) {
|
|
1212
1212
|
log3.info("Skip connecting to WebDriver Bidi interface due to unit tests");
|
|
@@ -1224,6 +1224,9 @@ function initiateBidi(socketUrl, strictSSL = true) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
socketUrl = socketUrl.replace("localhost", "127.0.0.1");
|
|
1226
1226
|
const bidiReqOpts = strictSSL ? {} : { rejectUnauthorized: false };
|
|
1227
|
+
if (userHeaders) {
|
|
1228
|
+
bidiReqOpts.headers = userHeaders;
|
|
1229
|
+
}
|
|
1227
1230
|
const handler = new BidiHandler(socketUrl, bidiReqOpts);
|
|
1228
1231
|
handler.connect().then((isConnected) => isConnected && log3.info("Connected to WebDriver Bidi interface at ".concat(socketUrl)));
|
|
1229
1232
|
return {
|
|
@@ -1329,7 +1332,11 @@ var WebDriver = class _WebDriver {
|
|
|
1329
1332
|
if (isBidi(options.capabilities || {})) {
|
|
1330
1333
|
const webSocketUrl = (_a = options.capabilities) == null ? void 0 : _a.webSocketUrl;
|
|
1331
1334
|
log4.info("Register BiDi handler for session with id ".concat(options.sessionId));
|
|
1332
|
-
Object.assign(bidiPrototype, initiateBidi(
|
|
1335
|
+
Object.assign(bidiPrototype, initiateBidi(
|
|
1336
|
+
webSocketUrl,
|
|
1337
|
+
options.strictSSL,
|
|
1338
|
+
options.headers
|
|
1339
|
+
));
|
|
1333
1340
|
}
|
|
1334
1341
|
const prototype = { ...protocolCommands, ...environmentPrototype, ...userPrototype, ...bidiPrototype };
|
|
1335
1342
|
const monad = webdriverMonad(options, modifier, prototype);
|
|
@@ -1548,7 +1555,7 @@ var WebDriverResponseError = class _WebDriverResponseError extends WebDriverErro
|
|
|
1548
1555
|
// package.json
|
|
1549
1556
|
var package_default = {
|
|
1550
1557
|
name: "webdriver",
|
|
1551
|
-
version: "9.
|
|
1558
|
+
version: "9.5.0",
|
|
1552
1559
|
description: "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
|
|
1553
1560
|
author: "Christian Bromann <mail@bromann.dev>",
|
|
1554
1561
|
homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
|
package/build/node.js
CHANGED
|
@@ -1189,7 +1189,7 @@ It seems like the service failed to start or is rejecting any connections.`;
|
|
|
1189
1189
|
}
|
|
1190
1190
|
return err.message;
|
|
1191
1191
|
};
|
|
1192
|
-
function initiateBidi(socketUrl, strictSSL = true) {
|
|
1192
|
+
function initiateBidi(socketUrl, strictSSL = true, userHeaders) {
|
|
1193
1193
|
const isUnitTesting = process.env.WDIO_UNIT_TESTS;
|
|
1194
1194
|
if (isUnitTesting) {
|
|
1195
1195
|
log3.info("Skip connecting to WebDriver Bidi interface due to unit tests");
|
|
@@ -1207,6 +1207,9 @@ function initiateBidi(socketUrl, strictSSL = true) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
socketUrl = socketUrl.replace("localhost", "127.0.0.1");
|
|
1209
1209
|
const bidiReqOpts = strictSSL ? {} : { rejectUnauthorized: false };
|
|
1210
|
+
if (userHeaders) {
|
|
1211
|
+
bidiReqOpts.headers = userHeaders;
|
|
1212
|
+
}
|
|
1210
1213
|
const handler = new BidiHandler(socketUrl, bidiReqOpts);
|
|
1211
1214
|
handler.connect().then((isConnected) => isConnected && log3.info(`Connected to WebDriver Bidi interface at ${socketUrl}`));
|
|
1212
1215
|
return {
|
|
@@ -1311,7 +1314,11 @@ var WebDriver = class _WebDriver {
|
|
|
1311
1314
|
if (isBidi(options.capabilities || {})) {
|
|
1312
1315
|
const webSocketUrl = options.capabilities?.webSocketUrl;
|
|
1313
1316
|
log4.info(`Register BiDi handler for session with id ${options.sessionId}`);
|
|
1314
|
-
Object.assign(bidiPrototype, initiateBidi(
|
|
1317
|
+
Object.assign(bidiPrototype, initiateBidi(
|
|
1318
|
+
webSocketUrl,
|
|
1319
|
+
options.strictSSL,
|
|
1320
|
+
options.headers
|
|
1321
|
+
));
|
|
1315
1322
|
}
|
|
1316
1323
|
const prototype = { ...protocolCommands, ...environmentPrototype, ...userPrototype, ...bidiPrototype };
|
|
1317
1324
|
const monad = webdriverMonad(options, modifier, prototype);
|
|
@@ -1487,7 +1494,7 @@ var WebDriverResponseError = class _WebDriverResponseError extends WebDriverErro
|
|
|
1487
1494
|
// package.json
|
|
1488
1495
|
var package_default = {
|
|
1489
1496
|
name: "webdriver",
|
|
1490
|
-
version: "9.
|
|
1497
|
+
version: "9.5.0",
|
|
1491
1498
|
description: "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
|
|
1492
1499
|
author: "Christian Bromann <mail@bromann.dev>",
|
|
1493
1500
|
homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
|
package/build/utils.d.ts
CHANGED
|
@@ -41,15 +41,18 @@ export declare function getEnvironmentVars({ isW3C, isMobile, isIOS, isAndroid,
|
|
|
41
41
|
*/
|
|
42
42
|
export declare function setupDirectConnect(client: Client): void;
|
|
43
43
|
/**
|
|
44
|
-
* get human
|
|
44
|
+
* get human-readable message from response error
|
|
45
45
|
* @param {Error} err response error
|
|
46
|
+
* @param params
|
|
46
47
|
*/
|
|
47
48
|
export declare const getSessionError: (err: JSONWPCommandError, params?: Partial<Options.WebDriver>) => string;
|
|
48
49
|
/**
|
|
49
50
|
* Enhance the monad with WebDriver Bidi primitives if a connection can be established successfully
|
|
50
51
|
* @param socketUrl url to bidi interface
|
|
52
|
+
* @param strictSSL
|
|
53
|
+
* @param userHeaders
|
|
51
54
|
* @returns prototype with interface for bidi primitives
|
|
52
55
|
*/
|
|
53
|
-
export declare function initiateBidi(socketUrl: string, strictSSL?: boolean): PropertyDescriptorMap;
|
|
56
|
+
export declare function initiateBidi(socketUrl: string, strictSSL?: boolean, userHeaders?: Record<string, string>): PropertyDescriptorMap;
|
|
54
57
|
export declare function parseBidiMessage(this: EventEmitter, data: Buffer): void;
|
|
55
58
|
//# sourceMappingURL=utils.d.ts.map
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAU/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAM1C,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAoBxF;;GAEG;AACH,wBAAsB,qBAAqB,CAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAA;CAAE,CAAC,CAgEzI;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAE,YAAY,EAAE,WAAW,CAAC,YAAY,QAiC3E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,WAkExE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAE,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC,sCAiD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AAO,CAAC,YAAY,CAAC,GAAG,qBAAqB,CAqB5K;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,QAgBhD;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAS,kBAAkB,WAAU,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,WAmD1F,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CACxB,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,OAAc,EACzB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,qBAAqB,CA6CvB;AAED,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,QAWjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.1",
|
|
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",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@types/node": "^20.1.0",
|
|
40
40
|
"@types/ws": "^8.5.3",
|
|
41
|
-
"@wdio/config": "9.
|
|
41
|
+
"@wdio/config": "9.5.0",
|
|
42
42
|
"@wdio/logger": "9.4.4",
|
|
43
43
|
"@wdio/protocols": "9.4.4",
|
|
44
|
-
"@wdio/types": "9.
|
|
45
|
-
"@wdio/utils": "9.
|
|
44
|
+
"@wdio/types": "9.5.0",
|
|
45
|
+
"@wdio/utils": "9.5.0",
|
|
46
46
|
"deepmerge-ts": "^7.0.3",
|
|
47
47
|
"undici": "^6.20.1",
|
|
48
48
|
"ws": "^8.8.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "83c76c40421092f0ce168270b5738e2826c5d0c7"
|
|
51
51
|
}
|