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]: Unable to launch any browser on macOS 12 beta #7624

Closed
sdnts opened this issue Jul 14, 2021 · 2 comments
Closed

[Bug]: Unable to launch any browser on macOS 12 beta #7624

sdnts opened this issue Jul 14, 2021 · 2 comments

Comments

@sdnts
Copy link

sdnts commented Jul 14, 2021

Playwright version

1.12.3

Operating system

MacOS

What browsers are you seeing the problem on?

No response

Other information

OS: macOS 12 Beta 3
Node version: v14.17.0

What happened? / Describe the bug

When I try to run a simple Playwright script on the latest macOS beta, Playwright errors out (error trace down below)

I'm not too familiar with Playwright's codebase, but when I manually go into my node_modules/playwright/lib/utils/registry.js and add mac12 keys to all browsers, Playwright launches just fine. (I just copied the mac11 key values)

I understand that macOS 12 is still in beta, so if it is deliberately "unsupported", please feel free to close this issue. Otherwise, I'm more than happy to create a PR to try and fix this if you'd like.

Code snippet to reproduce your bug

// This is the default playwright script from https://playwright.dev/docs/intro/#usage

const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch();
  // Create pages, interact with UI elements, assert values
  await browser.close();
})();

Relevant log output

browserType.launch: No executable path is specified. Pass "executablePath" option directly.
(node:59532) UnhandledPromiseRejectionWarning: browserType.launch: No executable path is specified. Pass "executablePath" option directly.
Error
    at Object.captureStackTrace (/Users/siddhant/Code/pw/node_modules/playwright/lib/utils/stackTrace.js:51:19)
    at Connection.sendMessageToServer (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/connection.js:73:48)
    at Proxy.<anonymous> (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/channelOwner.js:64:61)
    at /Users/siddhant/Code/pw/node_modules/playwright/lib/client/browserType.js:59:67
    at BrowserType._wrapApiCall (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/channelOwner.js:77:34)
    at BrowserType.launch (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/browserType.js:50:21)
    at /Users/siddhant/Code/pw/index.js:4:34
    at Object.<anonymous> (/Users/siddhant/Code/pw/index.js:7:3)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47
@sdnts sdnts changed the title [Bug]: Unable to launch any browser on macOS 12 [Bug]: Unable to launch any browser on macOS 12 beta Jul 14, 2021
@mxschmitt
Copy link
Member

mxschmitt commented Jul 15, 2021

This should be fixed in the next release of Playwright. (npm install playwright@next)

Duplicate of #7555

@sdnts
Copy link
Author

sdnts commented Jul 15, 2021

Awesome, thanks! I can confirm that the next version does not exhibit this problem anymore

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

3 participants