@dev-blinq/cucumber_client 1.0.1270-dev → 1.0.1272-dev
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.
|
@@ -8325,11 +8325,9 @@ var LocatorGenerator = class {
|
|
|
8325
8325
|
if (val !== null) {
|
|
8326
8326
|
hasAttribures.push(customAttribute);
|
|
8327
8327
|
result.push({
|
|
8328
|
-
css: `[${customAttribute}
|
|
8328
|
+
css: `[${customAttribute}=${this.PW.stringUtils.escapeForAttributeSelector(val)}]`,
|
|
8329
8329
|
score: 1,
|
|
8330
|
-
priority: 1
|
|
8331
|
-
customAttribute,
|
|
8332
|
-
value: val
|
|
8330
|
+
priority: 1
|
|
8333
8331
|
});
|
|
8334
8332
|
}
|
|
8335
8333
|
}
|
|
@@ -8794,7 +8792,7 @@ var LocatorGenerator = class {
|
|
|
8794
8792
|
// [LOCATOR_STRATEGIES.text]: basicLocators,
|
|
8795
8793
|
// [LOCATOR_STRATEGIES.no_text]: noTextLocators,
|
|
8796
8794
|
};
|
|
8797
|
-
if ((_a = this.
|
|
8795
|
+
if ((_a = this.options) == null ? void 0 : _a.customAttributes) {
|
|
8798
8796
|
console.groupCollapsed("Generating Custom locators for element:", element);
|
|
8799
8797
|
const customLocators = this.getUniqueLocators(element, this.getCustomLocators.bind(this), options);
|
|
8800
8798
|
if (customLocators.length > 0) {
|
|
@@ -95,11 +95,9 @@ class LocatorGenerator {
|
|
|
95
95
|
if (val !== null) {
|
|
96
96
|
hasAttribures.push(customAttribute);
|
|
97
97
|
result.push({
|
|
98
|
-
css: `[${customAttribute}
|
|
98
|
+
css: `[${customAttribute}=${this.PW.stringUtils.escapeForAttributeSelector(val)}]`,
|
|
99
99
|
score: 1,
|
|
100
100
|
priority: 1,
|
|
101
|
-
customAttribute,
|
|
102
|
-
value: val
|
|
103
101
|
})
|
|
104
102
|
}
|
|
105
103
|
}
|
|
@@ -624,7 +622,7 @@ class LocatorGenerator {
|
|
|
624
622
|
// [LOCATOR_STRATEGIES.text]: basicLocators,
|
|
625
623
|
// [LOCATOR_STRATEGIES.no_text]: noTextLocators,
|
|
626
624
|
}
|
|
627
|
-
if (this.
|
|
625
|
+
if (this.options?.customAttributes) {
|
|
628
626
|
console.groupCollapsed("Generating Custom locators for element:", element);
|
|
629
627
|
const customLocators = this.getUniqueLocators(element, this.getCustomLocators.bind(this), options);
|
|
630
628
|
if (customLocators.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/cucumber_client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1272-dev",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@babel/traverse": "^7.27.1",
|
|
30
30
|
"@babel/types": "^7.27.1",
|
|
31
31
|
"@cucumber/tag-expressions": "^6.1.1",
|
|
32
|
-
"@dev-blinq/cucumber-js": "1.0.
|
|
32
|
+
"@dev-blinq/cucumber-js": "1.0.175-dev",
|
|
33
33
|
"@faker-js/faker": "^8.1.0",
|
|
34
34
|
"automation_model": "1.0.753-dev",
|
|
35
35
|
"axios": "^1.7.4",
|