Apify

Apify and Crawlee Official Forum

b
F
A
J
A

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)
A
1 comment
yes, you can, crawler is extended "browser context"
Add a reply
Sign up and join the conversation on Discord
Join