webdriverio 9.0.0 → 9.0.4
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/commands/browser/executeAsync.d.ts.map +1 -1
- package/build/commands/element/execute.d.ts +1 -2
- package/build/commands/element/execute.d.ts.map +1 -1
- package/build/commands/element/executeAsync.d.ts +1 -2
- package/build/commands/element/executeAsync.d.ts.map +1 -1
- package/build/commands/element/getHTML.d.ts +54 -23
- package/build/commands/element/getHTML.d.ts.map +1 -1
- package/build/index.js +72 -21
- package/build/utils/index.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EACxE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EACjG,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EACxE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EACjG,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAuCtB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ChainablePromiseElement } from '../../types.js';
|
|
2
1
|
/**
|
|
3
2
|
*
|
|
4
3
|
* Inject a snippet of JavaScript into the page for execution in the context of the currently selected
|
|
@@ -35,5 +34,5 @@ import type { ChainablePromiseElement } from '../../types.js';
|
|
|
35
34
|
* @type protocol
|
|
36
35
|
*
|
|
37
36
|
*/
|
|
38
|
-
export declare function execute<ReturnValue, InnerArguments extends any[]>(this:
|
|
37
|
+
export declare function execute<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element | WebdriverIO.MultiRemoteBrowser, script: string | ((...innerArgs: [WebdriverIO.Element, ...InnerArguments]) => ReturnValue), ...args: InnerArguments): Promise<ReturnValue>;
|
|
39
38
|
//# sourceMappingURL=execute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/element/execute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/element/execute.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,OAAO,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EACnE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAChF,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,KAAK,WAAW,CAAC,EAC1F,GAAG,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,CA8BjD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ChainablePromiseElement } from '../../types.js';
|
|
2
1
|
/**
|
|
3
2
|
*
|
|
4
3
|
* Inject a snippet of JavaScript into the page for execution in the context of the currently selected
|
|
@@ -45,5 +44,5 @@ import type { ChainablePromiseElement } from '../../types.js';
|
|
|
45
44
|
* @type protocol
|
|
46
45
|
*
|
|
47
46
|
*/
|
|
48
|
-
export declare function executeAsync<ReturnValue, InnerArguments extends any[]>(this:
|
|
47
|
+
export declare function executeAsync<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element, script: string | ((...args: [...innerArgs: [WebdriverIO.Element, ...InnerArguments], callback: (result?: ReturnValue) => void]) => void), ...args: InnerArguments): Promise<ReturnValue>;
|
|
49
48
|
//# sourceMappingURL=executeAsync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/element/executeAsync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/element/executeAsync.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EACxE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EAC3H,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAuCtB"}
|
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
export interface GetHTMLOptions {
|
|
2
|
-
/**
|
|
3
|
-
* if true, it includes the selector element tag (default: true)
|
|
4
|
-
* @default true
|
|
5
|
-
*/
|
|
6
|
-
includeSelectorTag?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* if true, it includes content of the shadow roots of all web
|
|
9
|
-
* components in the DOM (default: true if WebDriver Bidi is enabled)
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
pierceShadowRoot?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* if true, it removes all comment nodes from the HTML, e.g. `<!--?lit$206212805$--><!--?lit$206212805$-->`
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
removeCommentNodes?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* if true, the html output will be prettified
|
|
20
|
-
* @default true
|
|
21
|
-
*/
|
|
22
|
-
prettify?: boolean;
|
|
23
|
-
}
|
|
24
1
|
/**
|
|
25
2
|
*
|
|
26
3
|
* Get source code of specified DOM element by selector. By default, it automatically
|
|
@@ -43,6 +20,32 @@ export interface GetHTMLOptions {
|
|
|
43
20
|
// outputs:
|
|
44
21
|
// "<span>Lorem ipsum dolor amet</span>"
|
|
45
22
|
});
|
|
23
|
+
:getHTMLShadow.js
|
|
24
|
+
it('allows to snapshot shadow dom', async () => {
|
|
25
|
+
await browser.url('https://ionicframework.com/docs/usage/v8/button/basic/demo.html?ionic:mode=md')
|
|
26
|
+
|
|
27
|
+
// get snapshot of web component without its styles
|
|
28
|
+
const snapshot = await $('ion-button').getHTML({ excludeElements: ['style'] })
|
|
29
|
+
|
|
30
|
+
// assert snapshot
|
|
31
|
+
await expect(snapshot).toMatchInlineSnapshot(`
|
|
32
|
+
<ion-button class="md button button-solid ion-activatable ion-focusable hydrated">Default
|
|
33
|
+
<template shadowrootmode="open">
|
|
34
|
+
<button type="button" class="button-native" part="native">
|
|
35
|
+
<span class="button-inner">
|
|
36
|
+
<slot name="icon-only"></slot>
|
|
37
|
+
<slot name="start"></slot>
|
|
38
|
+
<slot></slot>
|
|
39
|
+
<slot name="end"></slot>
|
|
40
|
+
</span>
|
|
41
|
+
<ion-ripple-effect role="presentation" class="md hydrated">
|
|
42
|
+
<template shadowrootmode="open"></template>
|
|
43
|
+
</ion-ripple-effect>
|
|
44
|
+
</button>
|
|
45
|
+
</template>
|
|
46
|
+
</ion-button>
|
|
47
|
+
`)
|
|
48
|
+
});
|
|
46
49
|
* </example>
|
|
47
50
|
*
|
|
48
51
|
* @alias element.getHTML
|
|
@@ -57,4 +60,32 @@ export interface GetHTMLOptions {
|
|
|
57
60
|
*
|
|
58
61
|
*/
|
|
59
62
|
export declare function getHTML(this: WebdriverIO.Element, options?: GetHTMLOptions): Promise<any>;
|
|
63
|
+
export interface GetHTMLOptions {
|
|
64
|
+
/**
|
|
65
|
+
* if true, it includes the selector element tag (default: true)
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
includeSelectorTag?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* if true, it includes content of the shadow roots of all web
|
|
71
|
+
* components in the DOM (default: true if WebDriver Bidi is enabled)
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
pierceShadowRoot?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* if true, it removes all comment nodes from the HTML, e.g. `<!--?lit$206212805$--><!--?lit$206212805$-->`
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
removeCommentNodes?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* if true, the html output will be prettified
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
prettify?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* remove certain elements from the output, e.g. style tags or svg elements
|
|
87
|
+
* @default []
|
|
88
|
+
*/
|
|
89
|
+
excludeElements?: string[];
|
|
90
|
+
}
|
|
60
91
|
//# sourceMappingURL=getHTML.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHTML.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getHTML.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,cAAc;IAC3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"getHTML.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getHTML.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,GAAE,cAAmB,gBAqF/B;AAmED,MAAM,WAAW,cAAc;IAC3B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC7B"}
|
package/build/index.js
CHANGED
|
@@ -2822,8 +2822,17 @@ async function executeAsync(script, ...args) {
|
|
|
2822
2822
|
}
|
|
2823
2823
|
if (this.isBidi) {
|
|
2824
2824
|
const context = await this.getWindowHandle();
|
|
2825
|
+
const functionDeclaration = `function (...args) {
|
|
2826
|
+
return new Promise(async (resolve, reject) => {
|
|
2827
|
+
try {
|
|
2828
|
+
await ${script.toString()}.call(this, ...args, resolve)
|
|
2829
|
+
} catch (err) {
|
|
2830
|
+
return reject(err)
|
|
2831
|
+
}
|
|
2832
|
+
})
|
|
2833
|
+
}`;
|
|
2825
2834
|
const result = await this.scriptCallFunction({
|
|
2826
|
-
functionDeclaration
|
|
2835
|
+
functionDeclaration,
|
|
2827
2836
|
awaitPromise: true,
|
|
2828
2837
|
arguments: args.map((arg) => LocalValue.getArgument(arg)),
|
|
2829
2838
|
target: {
|
|
@@ -3584,7 +3593,10 @@ async function reloadSession(newCapabilities) {
|
|
|
3584
3593
|
this.puppeteer.disconnect();
|
|
3585
3594
|
log8.debug("Disconnected puppeteer session");
|
|
3586
3595
|
}
|
|
3587
|
-
const ProtocolDriver = (await import(
|
|
3596
|
+
const ProtocolDriver = (await import(
|
|
3597
|
+
/* @vite-ignore */
|
|
3598
|
+
this.options.automationProtocol
|
|
3599
|
+
)).default;
|
|
3588
3600
|
await ProtocolDriver.reloadSession(this, newCapabilities);
|
|
3589
3601
|
const options = this.options;
|
|
3590
3602
|
if (Array.isArray(options.onReload) && options.onReload.length) {
|
|
@@ -4507,6 +4519,18 @@ async function execute2(script, ...args) {
|
|
|
4507
4519
|
if (typeof script !== "string" && typeof script !== "function") {
|
|
4508
4520
|
throw new Error("number or type of arguments don't agree with execute protocol command");
|
|
4509
4521
|
}
|
|
4522
|
+
if (this.isBidi) {
|
|
4523
|
+
const context = await this.getWindowHandle();
|
|
4524
|
+
const result = await this.scriptCallFunction({
|
|
4525
|
+
functionDeclaration: script.toString(),
|
|
4526
|
+
awaitPromise: false,
|
|
4527
|
+
arguments: [this, ...args].map((arg) => LocalValue.getArgument(arg)),
|
|
4528
|
+
target: {
|
|
4529
|
+
context
|
|
4530
|
+
}
|
|
4531
|
+
});
|
|
4532
|
+
return parseScriptResult(result);
|
|
4533
|
+
}
|
|
4510
4534
|
if (typeof script === "function") {
|
|
4511
4535
|
script = `return (${script}).apply(null, arguments)`;
|
|
4512
4536
|
}
|
|
@@ -4518,6 +4542,27 @@ async function executeAsync2(script, ...args) {
|
|
|
4518
4542
|
if (typeof script !== "string" && typeof script !== "function") {
|
|
4519
4543
|
throw new Error("number or type of arguments don't agree with execute protocol command");
|
|
4520
4544
|
}
|
|
4545
|
+
if (this.isBidi) {
|
|
4546
|
+
const context = await this.getWindowHandle();
|
|
4547
|
+
const functionDeclaration = `function (...args) {
|
|
4548
|
+
return new Promise(async (resolve, reject) => {
|
|
4549
|
+
try {
|
|
4550
|
+
await ${script.toString()}.call(this, ...args, resolve)
|
|
4551
|
+
} catch (err) {
|
|
4552
|
+
return reject(err)
|
|
4553
|
+
}
|
|
4554
|
+
})
|
|
4555
|
+
}`;
|
|
4556
|
+
const result = await this.scriptCallFunction({
|
|
4557
|
+
functionDeclaration,
|
|
4558
|
+
awaitPromise: true,
|
|
4559
|
+
arguments: [this, ...args].map((arg) => LocalValue.getArgument(arg)),
|
|
4560
|
+
target: {
|
|
4561
|
+
context
|
|
4562
|
+
}
|
|
4563
|
+
});
|
|
4564
|
+
return parseScriptResult(result);
|
|
4565
|
+
}
|
|
4521
4566
|
if (typeof script === "function") {
|
|
4522
4567
|
script = `return (${script}).apply(null, arguments)`;
|
|
4523
4568
|
}
|
|
@@ -4880,11 +4925,12 @@ async function getHTML(options = {}) {
|
|
|
4880
4925
|
} else if (typeof options !== "object") {
|
|
4881
4926
|
throw new Error("The `getHTML` options parameter must be an object");
|
|
4882
4927
|
}
|
|
4883
|
-
const { includeSelectorTag, pierceShadowRoot, removeCommentNodes, prettify } = Object.assign({
|
|
4928
|
+
const { includeSelectorTag, pierceShadowRoot, removeCommentNodes, prettify, excludeElements } = Object.assign({
|
|
4884
4929
|
includeSelectorTag: true,
|
|
4885
4930
|
pierceShadowRoot: true,
|
|
4886
4931
|
removeCommentNodes: true,
|
|
4887
|
-
prettify: true
|
|
4932
|
+
prettify: true,
|
|
4933
|
+
excludeElements: []
|
|
4888
4934
|
}, options);
|
|
4889
4935
|
const basicGetHTML = (elementId, includeSelectorTag2) => {
|
|
4890
4936
|
return browser.execute(getHTMLScript, {
|
|
@@ -4928,7 +4974,7 @@ async function getHTML(options = {}) {
|
|
|
4928
4974
|
id,
|
|
4929
4975
|
mode: shadowRootManager2.getShadowRootModeById(handle, id) || "open"
|
|
4930
4976
|
})));
|
|
4931
|
-
return sanitizeHTML($3, { removeCommentNodes, prettify });
|
|
4977
|
+
return sanitizeHTML($3, { removeCommentNodes, prettify, excludeElements });
|
|
4932
4978
|
}
|
|
4933
4979
|
const returnHTML = await basicGetHTML(this.elementId, includeSelectorTag);
|
|
4934
4980
|
return sanitizeHTML(returnHTML, { removeCommentNodes, prettify });
|
|
@@ -4956,6 +5002,11 @@ function populateHTML($3, shadowElementHTML) {
|
|
|
4956
5002
|
}
|
|
4957
5003
|
function sanitizeHTML($3, options = {}) {
|
|
4958
5004
|
const isCheerioObject = $3 && typeof $3 !== "string";
|
|
5005
|
+
if (isCheerioObject) {
|
|
5006
|
+
for (const elemToRemove of options.excludeElements || []) {
|
|
5007
|
+
$3(elemToRemove).remove();
|
|
5008
|
+
}
|
|
5009
|
+
}
|
|
4959
5010
|
let returnHTML = isCheerioObject ? $3("body").html() : $3;
|
|
4960
5011
|
if (options.removeCommentNodes) {
|
|
4961
5012
|
returnHTML = returnHTML?.replace(/<!--[\s\S]*?-->/g, "");
|
|
@@ -6172,18 +6223,15 @@ function transformClassicToBidiSelector(using, value) {
|
|
|
6172
6223
|
async function findDeepElement(selector) {
|
|
6173
6224
|
const browser = getBrowserObject26(this);
|
|
6174
6225
|
const shadowRootManager2 = getShadowRootManager(browser);
|
|
6175
|
-
const
|
|
6226
|
+
const context = await browser.getWindowHandle();
|
|
6176
6227
|
const shadowRoots = shadowRootManager2.getShadowElementsByContextId(
|
|
6177
|
-
|
|
6228
|
+
context,
|
|
6178
6229
|
this.elementId
|
|
6179
6230
|
);
|
|
6180
6231
|
const { using, value } = findStrategy(selector, this.isW3C, this.isMobile);
|
|
6181
6232
|
const locator = transformClassicToBidiSelector(using, value);
|
|
6182
|
-
const
|
|
6183
|
-
|
|
6184
|
-
context: handle,
|
|
6185
|
-
startNodes: shadowRoots.map((shadowRootNodeId) => ({ sharedId: shadowRootNodeId }))
|
|
6186
|
-
}).then(async (result) => {
|
|
6233
|
+
const startNodes = shadowRoots.length > 0 ? shadowRoots.map((shadowRootNodeId) => ({ sharedId: shadowRootNodeId })) : this.elementId ? [{ sharedId: this.elementId }] : void 0;
|
|
6234
|
+
const deepElementResult = await browser.browsingContextLocateNodes({ locator, context, startNodes }).then(async (result) => {
|
|
6187
6235
|
const nodes = result.nodes.filter((node) => Boolean(node.sharedId)).map((node) => ({
|
|
6188
6236
|
[ELEMENT_KEY17]: node.sharedId,
|
|
6189
6237
|
locator
|
|
@@ -6212,18 +6260,15 @@ async function findDeepElement(selector) {
|
|
|
6212
6260
|
async function findDeepElements(selector) {
|
|
6213
6261
|
const browser = getBrowserObject26(this);
|
|
6214
6262
|
const shadowRootManager2 = getShadowRootManager(browser);
|
|
6215
|
-
const
|
|
6263
|
+
const context = await browser.getWindowHandle();
|
|
6216
6264
|
const shadowRoots = shadowRootManager2.getShadowElementsByContextId(
|
|
6217
|
-
|
|
6265
|
+
context,
|
|
6218
6266
|
this.elementId
|
|
6219
6267
|
);
|
|
6220
6268
|
const { using, value } = findStrategy(selector, this.isW3C, this.isMobile);
|
|
6221
6269
|
const locator = transformClassicToBidiSelector(using, value);
|
|
6222
|
-
const
|
|
6223
|
-
|
|
6224
|
-
context: handle,
|
|
6225
|
-
startNodes: shadowRoots.map((shadowRootNodeId) => ({ sharedId: shadowRootNodeId }))
|
|
6226
|
-
}).then(async (result) => {
|
|
6270
|
+
const startNodes = shadowRoots.length > 0 ? shadowRoots.map((shadowRootNodeId) => ({ sharedId: shadowRootNodeId })) : this.elementId ? [{ sharedId: this.elementId }] : void 0;
|
|
6271
|
+
const deepElementResult = await browser.browsingContextLocateNodes({ locator, context, startNodes }).then(async (result) => {
|
|
6227
6272
|
const nodes = result.nodes.filter((node) => Boolean(node.sharedId)).map((node) => ({
|
|
6228
6273
|
[ELEMENT_KEY17]: node.sharedId,
|
|
6229
6274
|
locator
|
|
@@ -6795,7 +6840,10 @@ async function getProtocolDriver(options) {
|
|
|
6795
6840
|
if (typeof options.user === "string" && typeof options.key === "string") {
|
|
6796
6841
|
Object.assign(options, detectBackend(options));
|
|
6797
6842
|
}
|
|
6798
|
-
const Driver = webdriverImport || (await import(
|
|
6843
|
+
const Driver = webdriverImport || (await import(
|
|
6844
|
+
/* @vite-ignore */
|
|
6845
|
+
options.automationProtocol || "webdriver"
|
|
6846
|
+
)).default;
|
|
6799
6847
|
return { Driver, options };
|
|
6800
6848
|
}
|
|
6801
6849
|
|
|
@@ -6967,7 +7015,10 @@ var multiremote = async function(params, { automationProtocol } = {}) {
|
|
|
6967
7015
|
isW3C: multibrowser.instances[browserNames[0]].isW3C,
|
|
6968
7016
|
logLevel: multibrowser.instances[browserNames[0]].options.logLevel
|
|
6969
7017
|
};
|
|
6970
|
-
const ProtocolDriver = automationProtocol && isStub(automationProtocol) ? (await import(
|
|
7018
|
+
const ProtocolDriver = automationProtocol && isStub(automationProtocol) ? (await import(
|
|
7019
|
+
/* @vite-ignore */
|
|
7020
|
+
automationProtocol
|
|
7021
|
+
)).default : WebDriver;
|
|
6971
7022
|
const driver = ProtocolDriver.attachToSession(
|
|
6972
7023
|
sessionParams,
|
|
6973
7024
|
multibrowser.modifier.bind(multibrowser),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,WAAW,CAAA;AAEpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAQvD,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAC/E,OAAO,KAAK,EAAmB,QAAQ,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAOtG,OAAO,CAAC,MAAM,CAAC;IACX,UA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AO,MAAM,MAAM,wBAAyB,MAAM,+CAAgD,CAAA;AAElG;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACvB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SACrB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAShC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriverio",
|
|
3
3
|
"description": "Next-gen browser and mobile automation test framework for Node.js",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.4",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git://github.com/webdriverio/webdriverio.git",
|
|
10
|
+
"url": "git+https://github.com/webdriverio/webdriverio.git",
|
|
11
11
|
"directory": "packages/webdriverio"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@types/node": "^20.11.30",
|
|
74
74
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
75
|
-
"@wdio/config": "9.0.
|
|
76
|
-
"@wdio/logger": "9.0.
|
|
77
|
-
"@wdio/protocols": "9.0.
|
|
78
|
-
"@wdio/repl": "9.0.
|
|
79
|
-
"@wdio/types": "9.0.
|
|
80
|
-
"@wdio/utils": "9.0.
|
|
75
|
+
"@wdio/config": "9.0.4",
|
|
76
|
+
"@wdio/logger": "9.0.4",
|
|
77
|
+
"@wdio/protocols": "9.0.4",
|
|
78
|
+
"@wdio/repl": "9.0.4",
|
|
79
|
+
"@wdio/types": "9.0.4",
|
|
80
|
+
"@wdio/utils": "9.0.4",
|
|
81
81
|
"archiver": "^7.0.1",
|
|
82
82
|
"aria-query": "^5.3.0",
|
|
83
83
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"rgb2hex": "0.2.5",
|
|
97
97
|
"serialize-error": "^11.0.3",
|
|
98
98
|
"urlpattern-polyfill": "^10.0.0",
|
|
99
|
-
"webdriver": "9.0.
|
|
99
|
+
"webdriver": "9.0.4"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"puppeteer-core": "^22.3.0"
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"optional": true
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "1f3d6f781391548e8672e768e72b3d5c499a3aa7"
|
|
110
110
|
}
|