Categories
JavaScript Answers

How to set navigation timeout with Node.js Puppeteer?

Spread the love

To set navigation timeout with Node.js Puppeteer, we set the timeout option.

For instance, we write

await page.goto(url, { waitUntil: "load", timeout: 0 });

to call goto to go to the url.

We set timeout to 0 milliseconds to remove navigation timeout.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *