We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import puppeteer from 'puppeteer'; const browser = await puppeteer.launch({ protocol: 'webDriverBiDi', headless: false, }); const page = await browser.newPage(); page.on('dialog', async dialog => { console.log(dialog.type); await dialog.dismiss().catch((err) => console.error('dismiss failed', err)) }); await page.goto('https://htho.github.io/wdio-repro-collection/iframeNavigation.html'); await page.evaluate(() => { alert('test'); }); await browser.close();
Expected:
On dialog handler is invoked once.
Actual:
On dialog handler is invoked twice, the second dialog dismiss call fails since it was already handled.
The text was updated successfully, but these errors were encountered:
@sadym-chromium could you please take a look?
Sorry, something went wrong.
browsingContext.userPromptOpened
No branches or pull requests
Expected:
On dialog handler is invoked once.
Actual:
On dialog handler is invoked twice, the second dialog dismiss call fails since it was already handled.
The text was updated successfully, but these errors were encountered: