exotic-emerald
exotic-emerald3y ago

Is there a way to reset timeout?

I want to reset requestHandlerTimeoutSecs due to don't know request's maximum amount. How can I reset it? should we just set it like infinite?
3 Replies
exotic-emerald
exotic-emeraldOP3y ago
For example:
const hasNextPage = await page.locator(".next-btn").count()
if (hasNextPage !== 0) resetTimeout()
const hasNextPage = await page.locator(".next-btn").count()
if (hasNextPage !== 0) resetTimeout()
Lukas Krivka
Lukas Krivka3y ago
Not easily so just set it to very high number. You can always just return from the handler
exotic-emerald
exotic-emeraldOP3y ago
Yeah. I have to return from the handler instead of resetting the timeout.

Did you find this page helpful?