webdriverio 9.24.0 → 9.25.0
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.
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
* @uses protocol/elements, protocol/elementIdProperty
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export declare function getValue(this: WebdriverIO.Element): Promise<
|
|
23
|
+
export declare function getValue(this: WebdriverIO.Element): Promise<string>;
|
|
24
24
|
//# sourceMappingURL=getValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getValue.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getValue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"getValue.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getValue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAOpE"}
|
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;AAQpE,OAAO,KAAK,EAAE,aAAa,EAAwB,MAAM,YAAY,CAAA;AAIrE,cAAc,YAAY,CAAA;AAC1B,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA;AAC9B,eAAO,MAAM,kBAAkB,iCAA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
package/build/index.js
CHANGED
|
@@ -5095,7 +5095,7 @@ handleUserPrompt_fn = async function(log29) {
|
|
|
5095
5095
|
context: log29.context
|
|
5096
5096
|
});
|
|
5097
5097
|
} catch (err) {
|
|
5098
|
-
if (err instanceof Error && err.message.includes("no such alert")) {
|
|
5098
|
+
if (err instanceof Error && (err.message.includes("no such alert") || err.message.includes("no such frame"))) {
|
|
5099
5099
|
return;
|
|
5100
5100
|
}
|
|
5101
5101
|
throw err;
|
|
@@ -6991,10 +6991,8 @@ function getText() {
|
|
|
6991
6991
|
|
|
6992
6992
|
// src/commands/element/getValue.ts
|
|
6993
6993
|
function getValue() {
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
}
|
|
6997
|
-
return this.getElementAttribute(this.elementId, "value");
|
|
6994
|
+
const value = this.isW3C && !this.isMobile ? this.getElementProperty(this.elementId, "value") : this.getElementAttribute(this.elementId, "value");
|
|
6995
|
+
return value.then((res) => typeof res === "string" ? res : "");
|
|
6998
6996
|
}
|
|
6999
6997
|
|
|
7000
6998
|
// src/commands/element/isClickable.ts
|
|
@@ -9392,7 +9390,9 @@ var remote = async function(params, remoteModifier) {
|
|
|
9392
9390
|
instance.overwriteCommand = instance.overwriteCommand.bind(instance);
|
|
9393
9391
|
}
|
|
9394
9392
|
instance.addLocatorStrategy = addLocatorStrategyHandler(instance);
|
|
9395
|
-
|
|
9393
|
+
if (!isStub(options.automationProtocol)) {
|
|
9394
|
+
await registerSessionManager(instance);
|
|
9395
|
+
}
|
|
9396
9396
|
return instance;
|
|
9397
9397
|
};
|
|
9398
9398
|
var attach = async function(attachOptions) {
|
package/build/node.js
CHANGED
|
@@ -5139,7 +5139,7 @@ var DialogManager = class _DialogManager extends SessionManager {
|
|
|
5139
5139
|
context: log30.context
|
|
5140
5140
|
});
|
|
5141
5141
|
} catch (err) {
|
|
5142
|
-
if (err instanceof Error && err.message.includes("no such alert")) {
|
|
5142
|
+
if (err instanceof Error && (err.message.includes("no such alert") || err.message.includes("no such frame"))) {
|
|
5143
5143
|
return;
|
|
5144
5144
|
}
|
|
5145
5145
|
throw err;
|
|
@@ -6991,10 +6991,8 @@ function getText() {
|
|
|
6991
6991
|
|
|
6992
6992
|
// src/commands/element/getValue.ts
|
|
6993
6993
|
function getValue() {
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
}
|
|
6997
|
-
return this.getElementAttribute(this.elementId, "value");
|
|
6994
|
+
const value = this.isW3C && !this.isMobile ? this.getElementProperty(this.elementId, "value") : this.getElementAttribute(this.elementId, "value");
|
|
6995
|
+
return value.then((res) => typeof res === "string" ? res : "");
|
|
6998
6996
|
}
|
|
6999
6997
|
|
|
7000
6998
|
// src/commands/element/isClickable.ts
|
|
@@ -9061,7 +9059,9 @@ var remote = async function(params, remoteModifier) {
|
|
|
9061
9059
|
instance.overwriteCommand = instance.overwriteCommand.bind(instance);
|
|
9062
9060
|
}
|
|
9063
9061
|
instance.addLocatorStrategy = addLocatorStrategyHandler(instance);
|
|
9064
|
-
|
|
9062
|
+
if (!isStub(options.automationProtocol)) {
|
|
9063
|
+
await registerSessionManager(instance);
|
|
9064
|
+
}
|
|
9065
9065
|
return instance;
|
|
9066
9066
|
};
|
|
9067
9067
|
var attach = async function(attachOptions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/session/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,iBAE5D;AAED;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,cAAc;;gBAOjC,OAAO,EAAE,WAAW,CAAC,OAAO;IAyBxC,eAAe,IAAI,IAAI;IAOjB,UAAU;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/session/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,iBAE5D;AAED;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,cAAc;;gBAOjC,OAAO,EAAE,WAAW,CAAC,OAAO;IAyBxC,eAAe,IAAI,IAAI;IAOjB,UAAU;CAsCnB;AAED,qBAAa,MAAM;;gBAOF,KAAK,EAAE,KAAK,CAAC,yCAAyC,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO;IAQjG,OAAO;IAIP,YAAY;IAIZ,IAAI;IAIJ;;;;;;OAMG;IACG,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM;IAexB,OAAO;CAahB"}
|
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.25.0",
|
|
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.25.0",
|
|
81
81
|
"@wdio/logger": "9.18.0",
|
|
82
|
-
"@wdio/protocols": "9.
|
|
82
|
+
"@wdio/protocols": "9.25.0",
|
|
83
83
|
"@wdio/repl": "9.16.2",
|
|
84
|
-
"@wdio/types": "9.
|
|
85
|
-
"@wdio/utils": "9.
|
|
84
|
+
"@wdio/types": "9.25.0",
|
|
85
|
+
"@wdio/utils": "9.25.0",
|
|
86
86
|
"archiver": "^7.0.1",
|
|
87
87
|
"aria-query": "^5.3.0",
|
|
88
88
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"rgb2hex": "0.2.5",
|
|
100
100
|
"serialize-error": "^12.0.0",
|
|
101
101
|
"urlpattern-polyfill": "^10.0.0",
|
|
102
|
-
"webdriver": "9.
|
|
102
|
+
"webdriver": "9.25.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"puppeteer-core": ">=22.x || <=24.x"
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"optional": true
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "1352571ae8709a895c223973f1840f38d8530f4a"
|
|
113
113
|
}
|