Node.js puppeteer - How to set navigation timeout?

You can use timeout: 0 to disable timeout errors if you're loading a heavy page.

Use it in your page.goto like:

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

You can see the PR made to Pupeteer here which added the change, along with documentation and the unit tests that implement it.


#UPDATE 2019 (still working 2022)

You can also change the page behaviour since V1.0.0:

page.setDefaultNavigationTimeout(0); 

The param is the timeout in milliseconds.

References: https://pptr.dev/api/puppeteer.page.setdefaultnavigationtimeout