question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Unable to close page when confirm dialog is open

See original GitHub issue

Context:

  • 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:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
pavelfeldmancommented, Oct 23, 2020

Closing this one since it has been replied to, but please feel free to file new issues in case of follow up ideas.

1reaction
pavelfeldmancommented, Oct 20, 2020

Can still repro a problem on WebKit Mac (added a failing test)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found