ff-dom 1.0.8 → 1.0.9
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.
|
@@ -179,10 +179,11 @@ const getElementsFromHTML = (name, desc, type, locators, isShared, projectId, pr
|
|
|
179
179
|
locators: for (const locator of locators) {
|
|
180
180
|
try {
|
|
181
181
|
let relativeXpath = null;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
const isDynamic = String(locator.value || locator.type || "");
|
|
183
|
+
if (isDynamic.includes("dynamic") ||
|
|
184
|
+
isDynamic.match("dynamic") ||
|
|
185
|
+
isDynamic.includes("{") ||
|
|
186
|
+
isDynamic.includes("}")) {
|
|
186
187
|
finalLocators.push({
|
|
187
188
|
name: locator.name,
|
|
188
189
|
type: locator.type,
|
|
@@ -193,7 +194,8 @@ const getElementsFromHTML = (name, desc, type, locators, isShared, projectId, pr
|
|
|
193
194
|
});
|
|
194
195
|
continue;
|
|
195
196
|
}
|
|
196
|
-
|
|
197
|
+
const isRecorded = String(locator.isRecorded || "");
|
|
198
|
+
if (isRecorded.includes("N") || isRecorded.match("N")) {
|
|
197
199
|
finalLocators.push({
|
|
198
200
|
name: locator.name,
|
|
199
201
|
type: locator.type,
|
|
@@ -202,7 +204,6 @@ const getElementsFromHTML = (name, desc, type, locators, isShared, projectId, pr
|
|
|
202
204
|
status: locator.status,
|
|
203
205
|
isRecorded: locator.isRecorded,
|
|
204
206
|
});
|
|
205
|
-
continue;
|
|
206
207
|
}
|
|
207
208
|
if (isShared.includes("Y")) {
|
|
208
209
|
break locators;
|
package/package.json
CHANGED
|
@@ -279,11 +279,12 @@ const getElementsFromHTML = (
|
|
|
279
279
|
locators: for (const locator of locators) {
|
|
280
280
|
try {
|
|
281
281
|
let relativeXpath: string | null = null;
|
|
282
|
+
const isDynamic = String(locator.value || locator.type || "");
|
|
282
283
|
if (
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
isDynamic.includes("dynamic") ||
|
|
285
|
+
isDynamic.match("dynamic") ||
|
|
286
|
+
isDynamic.includes("{") ||
|
|
287
|
+
isDynamic.includes("}")
|
|
287
288
|
) {
|
|
288
289
|
finalLocators.push({
|
|
289
290
|
name: locator.name,
|
|
@@ -295,7 +296,10 @@ const getElementsFromHTML = (
|
|
|
295
296
|
});
|
|
296
297
|
continue;
|
|
297
298
|
}
|
|
298
|
-
|
|
299
|
+
const isRecorded = String(locator.isRecorded || "");
|
|
300
|
+
|
|
301
|
+
if (isRecorded.includes("N") || isRecorded.match("N")) {
|
|
302
|
+
|
|
299
303
|
finalLocators.push({
|
|
300
304
|
name: locator.name,
|
|
301
305
|
type: locator.type,
|
|
@@ -304,7 +308,6 @@ const getElementsFromHTML = (
|
|
|
304
308
|
status: locator.status,
|
|
305
309
|
isRecorded: locator.isRecorded,
|
|
306
310
|
});
|
|
307
|
-
continue;
|
|
308
311
|
}
|
|
309
312
|
if (isShared.includes("Y")) {
|
|
310
313
|
break locators;
|