[BUG] Unable to close page when confirm dialog is open
See original GitHub issueContext:
- Playwright Version: 1.4.2
- Operating System: macOS
- Node.js version: 12.18.3
- Browser: Chromium
Code Snippet
const { chromium } = require('playwright-chromium');
(async () => {
const browser = await chromium.launch({
headless: false,
});
const page = await browser.newPage();
await page.goto('https://opffc.csb.app');
await page.waitForSelector('.ok');
await page.click('.ok');
await page.close();
await browser.close();
})();
Describe the bug
Hey team. It seems like there’s no way to close the current page if a confirm dialog is open. This causes some of my tests to time out unexpectedly.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Jquery Button Dialog Box not Closing Immediately when Click
The problem is, when I click Yes, the dialog does not close immediately. It will still stay for a while until the "heavyDutyWorkFn()"...
Read more >48333 - Ask for confirmation of window close if form has been ...
I want to propose user preferences for whether to confirm on window close, tab close, and/or app close. I was able to add...
Read more >jquery-confirm.js | The multipurpose alert & confirm
A multipurpose alert, confirm plugin, alternative to the native alert() and confirm() functions. Supports features like auto-close, themes, animations, ...
Read more >Introducing the Dialog Element - WebKit
Dialogs are hidden by default. We can use the showModal() method to show the dialog. When it's shown, the dialog can be closed...
Read more >Troubleshoot user errors with Office Add-ins - Microsoft Learn
This issue occurs when the Dialog API is used in pop-up mode. To prevent this issue from occurring, use the displayInFrame flag. This...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this one since it has been replied to, but please feel free to file new issues in case of follow up ideas.
Can still repro a problem on WebKit Mac (added a failing test)