webdriverio 9.5.1 → 9.5.2
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":"switchWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/switchWindow.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,YAAY,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"switchWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/switchWindow.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,YAAY,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,MAAM,GAAG,MAAM,mBAmE3B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The Get Element Property command will return the result of getting a property of an
|
|
2
|
+
* The Get Element Property command will return the result of getting a property of an
|
|
3
|
+
* element.
|
|
3
4
|
*
|
|
4
5
|
* <example>
|
|
5
6
|
:getProperty.js
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
*
|
|
13
14
|
* @alias element.getProperty
|
|
14
15
|
* @param {string} property name of the element property
|
|
15
|
-
* @return {
|
|
16
|
+
* @return {unknown} the value of the property of the selected element
|
|
16
17
|
*/
|
|
17
|
-
export declare function getProperty(this: WebdriverIO.Element, property: string): Promise<
|
|
18
|
+
export declare function getProperty(this: WebdriverIO.Element, property: string): Promise<unknown>;
|
|
18
19
|
//# sourceMappingURL=getProperty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getProperty.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"getProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getProperty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,GACjB,OAAO,CAAC,OAAO,CAAC,CAElB"}
|
package/build/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAMA,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,kBAS7D;AAED;;;;GAIG;AACH,qBAAa,cAAc;;gBAMX,OAAO,EAAE,WAAW,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAMA,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,kBAS7D;AAED;;;;GAIG;AACH,qBAAa,cAAc;;gBAMX,OAAO,EAAE,WAAW,CAAC,OAAO;IAyFxC;;OAEG;IACG,UAAU;IAiChB,iBAAiB,CAAE,OAAO,EAAE,MAAM;IAQ5B,iBAAiB;IAOvB,IAAI,eAAe,YAElB;IAED,IAAI,aAAa,uBAEhB;CACJ"}
|
package/build/index.js
CHANGED
|
@@ -3075,6 +3075,12 @@ var ContextManager = class {
|
|
|
3075
3075
|
isAndroid: this.#browser.isAndroid,
|
|
3076
3076
|
isNativeContext: this.#isNativeContext
|
|
3077
3077
|
});
|
|
3078
|
+
this.#browser.on("result", (event) => {
|
|
3079
|
+
if (event.command === "closeWindow") {
|
|
3080
|
+
this.#currentContext = event.result.value[0];
|
|
3081
|
+
return this.#browser.switchToWindow(this.#currentContext);
|
|
3082
|
+
}
|
|
3083
|
+
});
|
|
3078
3084
|
if (!this.#isEnabled()) {
|
|
3079
3085
|
return;
|
|
3080
3086
|
}
|
|
@@ -3090,10 +3096,6 @@ var ContextManager = class {
|
|
|
3090
3096
|
}
|
|
3091
3097
|
});
|
|
3092
3098
|
this.#browser.on("result", (event) => {
|
|
3093
|
-
if (event.command === "closeWindow") {
|
|
3094
|
-
this.#currentContext = event.result.value[0];
|
|
3095
|
-
return this.#browser.switchToWindow(this.#currentContext);
|
|
3096
|
-
}
|
|
3097
3099
|
if (this.#browser.isMobile) {
|
|
3098
3100
|
if (event.command === "getContext") {
|
|
3099
3101
|
this.setCurrentContext(event.result.value);
|
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.5.
|
|
4
|
+
"version": "9.5.2",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"optional": true
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "5dac7f9da53631945d6b8c7cc10a5550623dd6eb"
|
|
114
114
|
}
|