automation_model 1.0.35 → 1.0.37

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.
@@ -216,6 +216,7 @@ class StableBrowser {
216
216
  }
217
217
  }
218
218
  async verifyElementExistInPage(selector, _params = null, options = {}) {
219
+ await new Promise((resolve) => setTimeout(resolve, 2000));
219
220
  const info = {};
220
221
  info.log = [];
221
222
  info.operation = "verify";
@@ -233,11 +234,14 @@ class StableBrowser {
233
234
  }
234
235
  }
235
236
  async waitForPageLoad(options = {}) {
237
+ const waitOptions = {
238
+ timeout: 10000,
239
+ };
236
240
  try {
237
241
  await Promise.all([
238
- this.page.waitForLoadState("networkidle"),
239
- this.page.waitForLoadState("load"),
240
- this.page.waitForLoadState("domcontentloaded"),
242
+ this.page.waitForLoadState("networkidle", waitOptions),
243
+ this.page.waitForLoadState("load", waitOptions),
244
+ this.page.waitForLoadState("domcontentloaded", waitOptions),
241
245
  ]);
242
246
  } catch (e) {
243
247
  console.log("waitForPageLoad error, ignored");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation_model",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
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",