How to set the timeout?

With Playwright, It is possible to set the timeout for every method that accepts the timeout setting using:
browserContext.setDefaultTimeout(timeout)

If you want a different timeout for navigations than other methods, perhaps when simulating slow connection speeds, you can also set:
browserContext.setDefaultNavigationTimeout(timeout)


How can I do this with crawlee/playwright?

Can I use
navigationTimeoutSecs
? (https://crawlee.dev/api/playwright-crawler/interface/PlaywrightCrawlerOptions#navigationTimeoutSecs)
Was this page helpful?