Skip to content
New issue

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

[Bug]: popup event doesnt work in new chromium headless #33703

Open
TerenceTian625 opened this issue Nov 21, 2024 · 1 comment
Open

[Bug]: popup event doesnt work in new chromium headless #33703

TerenceTian625 opened this issue Nov 21, 2024 · 1 comment

Comments

@TerenceTian625
Copy link

Version

1.49

Steps to reproduce

I want to try the new chromium headless, but the popup event doesn't work. My test involves the Paypal payment which will have a payal popup window. It works fine in browser mode and chromium headless shell mode.

Expected behavior

const popupPromise = this.page.waitForEvent("popup");
should be able to get the popup event after the Paypal button is clicked.

Actual behavior

TimeoutError: page.waitForEvent: Timeout 60000ms exceeded while waiting for event "popup"
=========================== logs ===========================
waiting for event "popup"

Additional context

No response

Environment

System:
    OS: macOS 14.6.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 1.18 GB / 32.00 GB
  Binaries:
    Node: 21.0.0 - ~/.nvm/versions/node/v21.0.0/bin/node
    npm: 10.2.0 - ~/.nvm/versions/node/v21.0.0/bin/npm
    bun: 1.0.6 - ~/.bun/bin/bun
  IDEs:
    VSCode: 0.41.3 - /usr/local/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.49.0 => 1.49.0 
    playwright-msteams-reporter: ^0.0.10 => 0.0.10
@dgozman
Copy link
Contributor

dgozman commented Nov 21, 2024

@TerenceTian625 Unfortunately, we won't be able to help without a repro. If you cannot share a repro, I'd recommend debugging yourself in --headed mode - it should be very close to the new headless mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants