webdriverio 8.16.11 → 8.16.12
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":"findStrategy.d.ts","sourceRoot":"","sources":["../../src/utils/findStrategy.ts"],"names":[],"mappings":"AA4BA,KAAK,gBAAgB,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AA4F/D,eAAO,MAAM,YAAY,aAAuB,gBAAgB,UAAU,OAAO,aAAa,OAAO;;;
|
|
1
|
+
{"version":3,"file":"findStrategy.d.ts","sourceRoot":"","sources":["../../src/utils/findStrategy.ts"],"names":[],"mappings":"AA4BA,KAAK,gBAAgB,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AA4F/D,eAAO,MAAM,YAAY,aAAuB,gBAAgB,UAAU,OAAO,aAAa,OAAO;;;CAwLpG,CAAA"}
|
|
@@ -241,7 +241,13 @@ export const findStrategy = function (selector, isW3C, isMobile) {
|
|
|
241
241
|
const conditions = [];
|
|
242
242
|
const [tag, prefix, name, attrName, attrValue, partial, query] = match.slice(1);
|
|
243
243
|
if (prefix) {
|
|
244
|
-
|
|
244
|
+
if (prefix === '.') {
|
|
245
|
+
// trick to match a class name exactly
|
|
246
|
+
conditions.push(`contains(concat(" ",@${PREFIX_NAME[prefix]}," "), " ${name} ")`);
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
conditions.push(`contains(@${PREFIX_NAME[prefix]}, "${name}")`);
|
|
250
|
+
}
|
|
245
251
|
}
|
|
246
252
|
if (attrName) {
|
|
247
253
|
conditions.push(attrValue
|
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": "8.16.
|
|
4
|
+
"version": "8.16.12",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@types/node": "^20.1.0",
|
|
71
|
-
"@wdio/config": "8.16.
|
|
71
|
+
"@wdio/config": "8.16.12",
|
|
72
72
|
"@wdio/logger": "8.11.0",
|
|
73
73
|
"@wdio/protocols": "8.16.5",
|
|
74
74
|
"@wdio/repl": "8.10.1",
|
|
75
|
-
"@wdio/types": "8.16.
|
|
76
|
-
"@wdio/utils": "8.16.
|
|
75
|
+
"@wdio/types": "8.16.12",
|
|
76
|
+
"@wdio/utils": "8.16.12",
|
|
77
77
|
"archiver": "^6.0.0",
|
|
78
78
|
"aria-query": "^5.0.0",
|
|
79
79
|
"css-shorthand-properties": "^1.1.1",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"resq": "^1.9.1",
|
|
91
91
|
"rgb2hex": "0.2.5",
|
|
92
92
|
"serialize-error": "^11.0.1",
|
|
93
|
-
"webdriver": "8.16.
|
|
93
|
+
"webdriver": "8.16.12"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"devtools": "^8.14.0"
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"optional": true
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "6a010586db579a5019b490172f8ffc3939c9e852"
|
|
104
104
|
}
|