How to check if a Puppeteer Page is currently in navigation state?
Maybe a workaround like this can help?
const [_, navigation] = await Promise.allSettled([
elem.click(),
page.waitForNavigation(),
]);
if (navigation.status === 'fulfilled') /* There was navigation. */;
else /* There was timeout, no navigation. */;