automation_model 1.0.32 → 1.0.33

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.
@@ -191,7 +191,11 @@ class StableBrowser {
191
191
  try {
192
192
  let element = await this._locate(selector, info, _params);
193
193
  await this._screenShot(options);
194
- await element.toContainText(text, { timeout: 10000 });
194
+ let foundText = await element.textContent();
195
+ if (!foundText.includes(text)) {
196
+ throw new Error("element doesn't contain text " + text);
197
+ }
198
+ //await expect(element).toContainText(text, { timeout: 10000 });
195
199
  //fill(value, { timeout: 10000 });
196
200
  //await element.dispatchEvent("change");
197
201
  return info;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation_model",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
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",