automation_model 1.0.15 → 1.0.16

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,3 +1,4 @@
1
+ import reg_parser from "regex-parser";
1
2
  import { expect } from "@playwright/test";
2
3
  class StableBrowser {
3
4
  constructor(browser, page, logger) {
@@ -42,6 +43,10 @@ class StableBrowser {
42
43
  return await this._checkUnique(scope.locator(selector.css));
43
44
  }
44
45
  if (selector.role) {
46
+ if (selector.role[1].nameReg) {
47
+ selector.role[1].name = reg_parser(selector.role[1].nameReg);
48
+ delete selector.role[1].nameReg;
49
+ }
45
50
  return await this._checkUnique(scope.getByRole(selector.role[0], selector.role[1]));
46
51
  }
47
52
  if (selector.text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation_model",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "An automation infrastructure module to be use for generative AI automation projects.",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -17,6 +17,7 @@
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
19
  "@playwright/test": "^1.35.0",
20
- "playwright": "^1.33.0"
20
+ "playwright": "^1.33.0",
21
+ "regex-parser": "^2.2.11"
21
22
  }
22
23
  }