automation_model 1.0.46 → 1.0.47
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 +5 -1
- package/package.json +1 -1
package/bin/stable_browser.js
CHANGED
|
@@ -313,8 +313,12 @@ class StableBrowser {
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
async waitForPageLoad(options = {}) {
|
|
316
|
+
let timeout = 10000;
|
|
317
|
+
if (options.page_timeout) {
|
|
318
|
+
timeout = options.page_timeout;
|
|
319
|
+
}
|
|
316
320
|
const waitOptions = {
|
|
317
|
-
timeout:
|
|
321
|
+
timeout: timeout,
|
|
318
322
|
};
|
|
319
323
|
try {
|
|
320
324
|
await Promise.all([
|