79613185

Date: 2025-05-08 21:23:24
Score: 1
Natty:
Report link

because during a series of redirects the page context becomes invalid, and waitForNavigation can stop on one page of the redirects and / or the neccessary selector is missing and waitForSelector faild - because of : JSHandles can be evaluated!

But in my case I need to find an element on the final page after a series of redirects and That means the page has already finished with redirects!

All the suggestions above fails with an error.

I came to a crude solution - a try-catch loop with pauses (sleeps), which simply works...

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user2088250