fix: Wait for WhatsApp page load (#209)
* Fix bug on Puppeteer timeout 30000 ms exceeded
This commit is contained in:
parent
d6637d662a
commit
f5a0de7def
1 changed files with 5 additions and 2 deletions
|
|
@ -63,7 +63,10 @@ class Client extends EventEmitter {
|
||||||
}, this.options.session);
|
}, this.options.session);
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.goto(WhatsWebURL);
|
await page.goto(WhatsWebURL, {
|
||||||
|
waitUntil: 'load',
|
||||||
|
timeout: 0,
|
||||||
|
});
|
||||||
|
|
||||||
const KEEP_PHONE_CONNECTED_IMG_SELECTOR = '[data-asset-intro-image="true"]';
|
const KEEP_PHONE_CONNECTED_IMG_SELECTOR = '[data-asset-intro-image="true"]';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue