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.
- package/bin/stable_browser.js +6 -3
- package/package.json +1 -1
package/bin/stable_browser.js
CHANGED
|
@@ -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");
|