automation_model 1.0.34 → 1.0.36

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.
@@ -196,6 +196,7 @@ class StableBrowser {
196
196
  await this._screenShot(options);
197
197
  let foundText = await element.textContent();
198
198
  if (!foundText.includes(text)) {
199
+ info.foundText = foundText;
199
200
  throw new Error("element doesn't contain text " + text);
200
201
  }
201
202
  //await expect(element).toContainText(text, { timeout: 10000 });
@@ -215,6 +216,7 @@ class StableBrowser {
215
216
  }
216
217
  }
217
218
  async verifyElementExistInPage(selector, _params = null, options = {}) {
219
+ await new Promise((resolve) => setTimeout(resolve, 2000));
218
220
  const info = {};
219
221
  info.log = [];
220
222
  info.operation = "verify";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation_model",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
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",