-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page.setContent(html, {waitUntil: 'networkidle'}); #907
Comments
my workaround is to use: await page.goto(`data:text/html,${html}`, { waitUntil: 'networkidle' }); |
closing as duplicate of #728 |
Networkidle is no longer supported. You should use 'networkidle2' instead |
For anyone still using this workaround, now Using |
since puppeteer/puppeteer#907 is closed, it is possible to use setContent in a similar way. And as it seems that my workarund with "data:text/html;charset=UTF-8,<HTML CONTENT>" as url paremter stopped working with the latest updates, I looked for a way to integrate this with less effort. By checking the "url" paremeter if it starts with data:text/html, we can easily check if we should use "setContent" or "goto". All the best, Simon
I'd like to be able to wait for network idle in:
https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetcontenthtml
I'd like to be able to do:
because currently:
The text was updated successfully, but these errors were encountered: