playwright: [Bug]: Issue with Playwright 1.50.1 on macOS 15.3 (Sequoia) - Page closes unexpectedly in non-headless mode

Version

1.50.1

Steps to reproduce

After upgrading to macOS 15.3 (Sequoia), I began encountering an issue where Playwright fails when launching Chromium in non-headless mode. Specifically, I am seeing the following error:

swift Copy Edit Failed to create browser context or page: Error { message='Page closed name='Error stack='Error: Page closed at FrameSession.dispose (/private/var/folders/sw/mh9s52b17qz49p3629grjqnm0000gp/T/playwright-java-10961038274755770653/package/lib/server/chromium/crPage.js:492:52) at CRPage.didClose (/private/var/folders/sw/mh9s52b17qz49p3629grjqnm0000gp/T/playwright-java-10961038274755770653/package/lib/server/chromium/crPage.js:152:60) at CRBrowser._didDisconnect (/private/var/folders/sw/mh9s52b17qz49p3629grjqnm0000gp/T/playwright-java-10961038274755770653/package/lib/server/chromium/crBrowser.js:216:57) at CRConnection.<anonymous> (/private/var/folders/sw/mh9s52b17qz49p3629grjqnm0000gp/T/playwright-java-10961038274755770653/package/lib/server/chromium/crConnection.js:84:39) } Steps to Reproduce:

Upgrade to macOS 15.3 (Sequoia). Launch Playwright in non-headless mode using Chromium. Encounter the “Page closed” error as soon as the browser context is created. Expected Behavior: Playwright should launch Chromium in non-headless mode without issues.

Additional Information:

I’m using Playwright 1.50.1 (latest stable version). The issue only started occurring after the macOS upgrade to 15.3 (Sequoia). Running in headless mode works fine, and Chromium opens without any problems. Permissions (Accessibility, Screen Recording, etc.) have been granted as required. Environment:

macOS Version: 15.3 (Sequoia) Playwright Version: 1.50.1 Browser: Chromium (non-headless mode) Steps Taken to Resolve:

Tried reinstalling Playwright and Chromium (npx playwright install --force). Tried running in headless mode (works fine). Checked system permissions (Accessibility, Screen Recording, Full Disk Access). Logs:

Error logs are included above. Debugging logs from Playwright are available if needed.

Expected behavior

Playwright should launch Chromium in non-headless mode without issues, allowing interactions with the browser as expected.

Actual behavior

Playwright fails to launch Chromium in non-headless mode, with the error Page closed appearing immediately after the browser context is created.

Additional context

No response

Environment

macOS Version: 15.3 (Sequoia)
Playwright Version: 1.50.1
Browser: Chromium (non-headless mode)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

@rammesika re https://github.com/microsoft/playwright/issues/34693#issuecomment-2655035651 Looks like you are using an old Playwright version in your Java project. Check your pom.xml and look for v1.39 which is the same Chromium version (outdated) like which you are using. Upgrading Playwright should help you and then you don’t need to use the new Chromium version from https://github.com/microsoft/playwright/issues/34693#issuecomment-2655632298 aka. your hack.


@MaxGood-AI https://github.com/microsoft/playwright/issues/34693#issuecomment-2654944203 looks like a different issue. I recommend filing a new issue and following the issue template since mixing these two issues makes it confusing for the future.

Closing as per above since it seems to be solved.

@MaxGood-AI are you on v1.50 as well? Could you try our Canary version?