webdriverio 9.0.6 → 9.0.8
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/deleteCookies.d.ts +3 -3
- package/build/commands/browser/deleteCookies.d.ts.map +1 -1
- package/build/commands/browser/execute.d.ts +1 -1
- package/build/commands/browser/execute.d.ts.map +1 -1
- package/build/commands/browser/executeAsync.d.ts +7 -2
- package/build/commands/browser/executeAsync.d.ts.map +1 -1
- package/build/commands/browser/getCookies.d.ts +9 -4
- package/build/commands/browser/getCookies.d.ts.map +1 -1
- package/build/commands/browser/saveScreenshot.d.ts.map +1 -1
- package/build/commands/browser/setCookies.d.ts.map +1 -1
- package/build/commands/browser/setViewport.d.ts.map +1 -1
- package/build/commands/constant.d.ts +2 -0
- package/build/commands/constant.d.ts.map +1 -1
- package/build/commands/element/execute.d.ts +1 -1
- package/build/commands/element/execute.d.ts.map +1 -1
- package/build/commands/element/executeAsync.d.ts +6 -1
- package/build/commands/element/executeAsync.d.ts.map +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +574 -416
- package/build/polyfill.d.ts +10 -0
- package/build/polyfill.d.ts.map +1 -0
- package/build/scripts/customElement.d.ts.map +1 -1
- package/build/scripts/customElement.js +10 -0
- package/build/utils/bidi/error.d.ts +6 -0
- package/build/utils/bidi/error.d.ts.map +1 -0
- package/build/utils/bidi/index.d.ts +2 -2
- package/build/utils/bidi/index.d.ts.map +1 -1
- package/build/utils/getElementObject.d.ts +1 -1
- package/build/utils/getElementObject.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function getPolyfillManager(browser: WebdriverIO.Browser): PolyfillManager;
|
|
2
|
+
/**
|
|
3
|
+
* This class is responsible for setting polyfill scripts in the browser.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PolyfillManager {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(browser: WebdriverIO.Browser);
|
|
8
|
+
initialize(): Promise<boolean>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=polyfill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../src/polyfill.ts"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,mBAS9D;AAED;;GAEG;AACH,qBAAa,eAAe;;gBAGZ,OAAO,EAAE,WAAW,CAAC,OAAO;IAsClC,UAAU;CAGnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customElement.d.ts","sourceRoot":"","sources":["../../src/scripts/customElement.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,oBAAoB,
|
|
1
|
+
{"version":3,"file":"customElement.d.ts","sourceRoot":"","sources":["../../src/scripts/customElement.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,UAAU,oBAAoB,SA+B3C"}
|
|
@@ -18,6 +18,16 @@ function customElementWrapper() {
|
|
|
18
18
|
};
|
|
19
19
|
return origFn(name, Constructor, options);
|
|
20
20
|
};
|
|
21
|
+
const origAttachShadow = Element.prototype.attachShadow;
|
|
22
|
+
Element.prototype.attachShadow = function(init) {
|
|
23
|
+
const shadowRoot = origAttachShadow.call(this, init);
|
|
24
|
+
let parentNode = this;
|
|
25
|
+
while (parentNode.parentNode) {
|
|
26
|
+
parentNode = parentNode.parentNode;
|
|
27
|
+
}
|
|
28
|
+
console.debug("[WDIO]", "newShadowRoot", this, parentNode, parentNode === document);
|
|
29
|
+
return shadowRoot;
|
|
30
|
+
};
|
|
21
31
|
}
|
|
22
32
|
export {
|
|
23
33
|
customElementWrapper as default
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type local, type remote } from 'webdriver';
|
|
2
|
+
export declare class WebdriverBidiExeception extends Error {
|
|
3
|
+
#private;
|
|
4
|
+
constructor(params: remote.ScriptCallFunctionParameters, result: local.ScriptEvaluateResultException);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/utils/bidi/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAA;AAInD,qBAAa,uBAAwB,SAAQ,KAAK;;gBAK1C,MAAM,EAAE,MAAM,CAAC,4BAA4B,EAC3C,MAAM,EAAE,KAAK,CAAC,6BAA6B;CAkFlD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare function parseScriptResult(result: local.ScriptEvaluateResult): any;
|
|
1
|
+
import { type remote, type local } from 'webdriver';
|
|
2
|
+
export declare function parseScriptResult(params: remote.ScriptCallFunctionParameters, result: local.ScriptEvaluateResult): any;
|
|
3
3
|
export declare function deserializeValue(result: remote.ScriptLocalValue): any;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/bidi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/bidi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAA;AAKhE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,4BAA4B,EAAE,MAAM,EAAE,KAAK,CAAC,oBAAoB,OAYhH;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,gBAAgB,OAkD/D"}
|
|
@@ -18,7 +18,7 @@ declare class WebDriverError extends Error {
|
|
|
18
18
|
* @param {Object} res findElement response
|
|
19
19
|
* @return {Object} WDIO element object
|
|
20
20
|
*/
|
|
21
|
-
export declare
|
|
21
|
+
export declare function getElement(this: WebdriverIO.Browser | WebdriverIO.Element, selector?: Selector, res?: ElementReference | ExtendedElementReference | Error, props?: GetElementProps): WebdriverIO.Element;
|
|
22
22
|
/**
|
|
23
23
|
* transforms a findElements response into an array of WDIO elements
|
|
24
24
|
* @param {string} selector selector that was used to query the element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getElementObject.d.ts","sourceRoot":"","sources":["../../src/utils/getElementObject.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAKvD,OAAO,KAAK,EAAE,QAAQ,EAAgB,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEnF,UAAU,eAAe;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,UAAU,sBAAsB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,cAAM,cAAe,SAAQ,KAAK;gBAClB,GAAG,EAAE,KAAK,GAAG,sBAAsB;CAWlD;AAED;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"getElementObject.d.ts","sourceRoot":"","sources":["../../src/utils/getElementObject.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAKvD,OAAO,KAAK,EAAE,QAAQ,EAAgB,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEnF,UAAU,eAAe;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,UAAU,sBAAsB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,cAAM,cAAe,SAAQ,KAAK;gBAClB,GAAG,EAAE,KAAK,GAAG,sBAAsB;CAWlD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACtB,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,QAAQ,CAAC,EAAE,QAAQ,EACnB,GAAG,CAAC,EAAE,gBAAgB,GAAG,wBAAwB,GAAG,KAAK,EACzD,KAAK,GAAE,eAAmE,GAC3E,WAAW,CAAC,OAAO,CA8DrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,SACd,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,YACrC,QAAQ,GAAG,gBAAgB,EAAE,GAAG,WAAW,CAAC,OAAO,EAAE,gBACjD,CAAC,gBAAgB,GAAG,wBAAwB,GAAG,KAAK,GAAG,cAAc,CAAC,EAAE,UAC/E,eAAe,KACvB,WAAW,CAAC,OAAO,EA8ErB,CAAA"}
|
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.0.
|
|
4
|
+
"version": "9.0.8",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=18"
|
|
17
|
+
"node": ">=18.20.0"
|
|
18
18
|
},
|
|
19
19
|
"tags": [
|
|
20
20
|
"webdriver",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"types": "./build/index.d.ts",
|
|
66
66
|
"typeScriptVersion": "3.8.3",
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@sinonjs/fake-timers": "^
|
|
68
|
+
"@sinonjs/fake-timers": "^13.0.1",
|
|
69
69
|
"@types/archiver": "^6.0.2",
|
|
70
70
|
"@types/aria-query": "^5.0.4",
|
|
71
71
|
"@types/lodash.clonedeep": "^4.5.9",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@types/node": "^20.11.30",
|
|
78
78
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
79
|
-
"@wdio/config": "9.0.
|
|
80
|
-
"@wdio/logger": "9.0.
|
|
81
|
-
"@wdio/protocols": "9.0.
|
|
82
|
-
"@wdio/repl": "9.0.
|
|
83
|
-
"@wdio/types": "9.0.
|
|
84
|
-
"@wdio/utils": "9.0.
|
|
79
|
+
"@wdio/config": "9.0.8",
|
|
80
|
+
"@wdio/logger": "9.0.8",
|
|
81
|
+
"@wdio/protocols": "9.0.8",
|
|
82
|
+
"@wdio/repl": "9.0.8",
|
|
83
|
+
"@wdio/types": "9.0.8",
|
|
84
|
+
"@wdio/utils": "9.0.8",
|
|
85
85
|
"archiver": "^7.0.1",
|
|
86
86
|
"aria-query": "^5.3.0",
|
|
87
87
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"rgb2hex": "0.2.5",
|
|
101
101
|
"serialize-error": "^11.0.3",
|
|
102
102
|
"urlpattern-polyfill": "^10.0.0",
|
|
103
|
-
"webdriver": "9.0.
|
|
103
|
+
"webdriver": "9.0.8"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"puppeteer-core": "^22.3.0"
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"optional": true
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "cc85ebf08918965cff46ce7e014703549b7f50d7"
|
|
114
114
|
}
|