Skip to content
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

waitUntil parameter #5

Closed
parweb opened this issue Dec 4, 2018 · 1 comment
Closed

waitUntil parameter #5

parweb opened this issue Dec 4, 2018 · 1 comment

Comments

@parweb
Copy link

parweb commented Dec 4, 2018

maybe add --waitUntil="networkidle2" parameter

await page.goto('https://news.ycombinator.com', {waitUntil: 'networkidle2'});

waitUntil can be either:
load - consider navigation to be finished when the load event is fired.
domcontentloaded - consider navigation to be finished when the DOMContentLoaded event is fired.
networkidle0 - consider navigation to be finished when there are no more than 0 network connections for at least 500 ms.
networkidle2 - consider navigation to be finished when there are no more than 2 network connections for at least 500 ms.

@vladocar
Copy link
Owner

vladocar commented Dec 6, 2018

Im not sure why you need "networkidle2" parameter?

@vladocar vladocar closed this as completed Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants