Hello!
I want to register an event that clears the alert. Even if I register for beforeScreenshot , the code doesn't reach it because it runs after moving the page.
So I would like to add some code before moving the page like this:
page.on('dialog', async (dialog) => {
console.log(dialog.message());
await dialog.dismiss();
});
await page[isHTMLContent ? 'setContent' : 'goto'](input, {
timeout: timeoutInMilliseconds,
waitUntil: 'networkidle2',
});
...
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too