@dev-blinq/cucumber_client 1.0.1255-dev → 1.0.1256-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.
@@ -989,7 +989,7 @@ class BVTRecorder {
989
989
  el.__locators = this.getLocatorsObject(el);
990
990
  }
991
991
  const role = window.getAriaRole(el);
992
- const label = window.getElementAccessibleName(el, false) || window.getElementAccessibleName(el, true) || role || "";
992
+ const label = window.getElementAccessibleName(el, false) || window.getElementAccessibleName(el, true) || "";
993
993
  const result = this.getElementProperties(el);
994
994
  return {
995
995
  role,
@@ -578,7 +578,7 @@ const _generateCodeFromCommand = (step, elements, userData) => {
578
578
  case 1:
579
579
  comment = `// Click on ${elementIdentifier ? elementIdentifier : step.label} in the context of ${escapeNonPrintables(step.value)}`;
580
580
  codeLines.push(escapeNonPrintables(comment));
581
- input = `"${escapeNonPrintables(step.value)}"`;
581
+ input = `"${escapeNonPrintables(step.value.replaceAll('"', '\\"'))}"`;
582
582
  if (step.dataSource === "userData" || step.dataSource === "parameters") {
583
583
  input = "_" + step.dataKey;
584
584
  }
@@ -588,7 +588,7 @@ const _generateCodeFromCommand = (step, elements, userData) => {
588
588
  case 2:
589
589
  comment = `// Double click on ${elementIdentifier ? elementIdentifier : step.label} in the context of ${escapeNonPrintables(step.value)}`;
590
590
  codeLines.push(escapeNonPrintables(comment));
591
- input = `"${escapeNonPrintables(step.value)}"`;
591
+ input = `"${escapeNonPrintables(step.value.replaceAll('"', '\\"'))}"`;
592
592
  if (step.dataSource === "userData" || step.dataSource === "parameters") {
593
593
  input = "_" + step.dataKey;
594
594
  }
@@ -598,7 +598,7 @@ const _generateCodeFromCommand = (step, elements, userData) => {
598
598
  default:
599
599
  comment = `// Click on ${elementIdentifier ? elementIdentifier : step.label} in the context of ${escapeNonPrintables(step.value)}`;
600
600
  codeLines.push(escapeNonPrintables(comment));
601
- input = `"${escapeNonPrintables(step.value)}"`;
601
+ input = `"${escapeNonPrintables(step.value.replaceAll('"', '\\"'))}"`;
602
602
  if (step.dataSource === "userData" || step.dataSource === "parameters") {
603
603
  input = "_" + step.dataKey;
604
604
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1255-dev",
3
+ "version": "1.0.1256-dev",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",