webdriverio 7.20.8 → 7.22.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.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:example.js
|
|
7
7
|
it('should fetch the project title', async () => {
|
|
8
8
|
await browser.url('https://webdriver.io')
|
|
9
|
-
|
|
9
|
+
browser.addLocatorStrategy('myStrat', (selector) => {
|
|
10
10
|
return document.querySelectorAll(selector)
|
|
11
11
|
})
|
|
12
12
|
|
|
@@ -10,7 +10,7 @@ const constants_1 = require("../../constants");
|
|
|
10
10
|
:example.js
|
|
11
11
|
it('should fetch the project title', async () => {
|
|
12
12
|
await browser.url('https://webdriver.io')
|
|
13
|
-
|
|
13
|
+
browser.addLocatorStrategy('myStrat', (selector) => {
|
|
14
14
|
return document.querySelectorAll(selector)
|
|
15
15
|
})
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEqual.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EAAE,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isEqual.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAA8B,OAAO,CACjC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EAAE,EAAE,WAAW,CAAC,OAAO,oBA4B1B"}
|
|
@@ -33,7 +33,10 @@ async function isEqual(el) {
|
|
|
33
33
|
// mobile native
|
|
34
34
|
if (browser.isMobile) {
|
|
35
35
|
const context = await browser.getContext();
|
|
36
|
-
|
|
36
|
+
const contextId = typeof context === 'string'
|
|
37
|
+
? context
|
|
38
|
+
: context === null || context === void 0 ? void 0 : context.id;
|
|
39
|
+
if (contextId && contextId.toLowerCase().includes('native')) {
|
|
37
40
|
return this.elementId === el.elementId;
|
|
38
41
|
}
|
|
39
42
|
}
|
|
@@ -121,7 +121,7 @@ const findStrategy = function (selector, isW3C, isMobile) {
|
|
|
121
121
|
// user has specified locator strategy directly
|
|
122
122
|
case 'directly': {
|
|
123
123
|
const match = stringSelector.match(DIRECT_SELECTOR_REGEXP);
|
|
124
|
-
if (!match
|
|
124
|
+
if (!match) {
|
|
125
125
|
throw new Error('InvalidSelectorStrategy'); // ToDo: move error to wdio-error package
|
|
126
126
|
}
|
|
127
127
|
using = match[1];
|
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": "7.
|
|
4
|
+
"version": "7.22.0",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@types/aria-query": "^5.0.0",
|
|
59
59
|
"@types/node": "^18.0.0",
|
|
60
|
-
"@wdio/config": "7.
|
|
60
|
+
"@wdio/config": "7.21.0",
|
|
61
61
|
"@wdio/logger": "7.19.0",
|
|
62
|
-
"@wdio/protocols": "7.
|
|
63
|
-
"@wdio/repl": "7.
|
|
64
|
-
"@wdio/types": "7.
|
|
65
|
-
"@wdio/utils": "7.
|
|
62
|
+
"@wdio/protocols": "7.22.0",
|
|
63
|
+
"@wdio/repl": "7.21.0",
|
|
64
|
+
"@wdio/types": "7.21.0",
|
|
65
|
+
"@wdio/utils": "7.21.0",
|
|
66
66
|
"archiver": "^5.0.0",
|
|
67
67
|
"aria-query": "^5.0.0",
|
|
68
68
|
"css-shorthand-properties": "^1.1.1",
|
|
69
69
|
"css-value": "^0.0.1",
|
|
70
|
-
"devtools": "7.
|
|
71
|
-
"devtools-protocol": "^0.0.
|
|
70
|
+
"devtools": "7.22.0",
|
|
71
|
+
"devtools-protocol": "^0.0.1034970",
|
|
72
72
|
"fs-extra": "^10.0.0",
|
|
73
73
|
"grapheme-splitter": "^1.0.2",
|
|
74
74
|
"lodash.clonedeep": "^4.5.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"resq": "^1.9.1",
|
|
82
82
|
"rgb2hex": "0.2.5",
|
|
83
83
|
"serialize-error": "^8.0.0",
|
|
84
|
-
"webdriver": "7.
|
|
84
|
+
"webdriver": "7.22.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "606f34a758f7ec0edc1fd0ae7c1553bde9fddc7e"
|
|
87
87
|
}
|