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
fair-rose
fair-roseOP3y 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()
itchy-amethyst
itchy-amethyst3y ago
Not easily so just set it to very high number. You can always just return from the handler
fair-rose
fair-roseOP3y ago
Yeah. I have to return from the handler instead of resetting the timeout.

Did you find this page helpful?