automation_model 1.0.36 → 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.
@@ -234,11 +234,14 @@ class StableBrowser {
234
234
  }
235
235
  }
236
236
  async waitForPageLoad(options = {}) {
237
+ const waitOptions = {
238
+ timeout: 10000,
239
+ };
237
240
  try {
238
241
  await Promise.all([
239
- this.page.waitForLoadState("networkidle"),
240
- this.page.waitForLoadState("load"),
241
- this.page.waitForLoadState("domcontentloaded"),
242
+ this.page.waitForLoadState("networkidle", waitOptions),
243
+ this.page.waitForLoadState("load", waitOptions),
244
+ this.page.waitForLoadState("domcontentloaded", waitOptions),
242
245
  ]);
243
246
  } catch (e) {
244
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.36",
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",