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.

Support for macOS 11.0 Big Sur

See original GitHub issue

i have been using Playwright-Sharp on macOS for while - however updating my system to macOS 11.0 Big Sur seemed to break my application with the following error:

(node:3524) UnhandledPromiseRejectionWarning: Error: ERROR: Playwright does not support chromium on mac11.0
    at Object.assert (/snapshot/playwright-cli/node_modules/playwright/lib/utils/utils.js:58:15)
    at revisionURL (/snapshot/playwright-cli/node_modules/playwright/lib/install/browserFetcher.js:125:13)
    at Object.downloadBrowserWithProgressBar (/snapshot/playwright-cli/node_modules/playwright/lib/install/browserFetcher.js:150:17)
    at async validateCache (/snapshot/playwright-cli/node_modules/playwright/lib/install/installer.js:99:9)
    at async Object.installBrowsersWithProgressBar (/snapshot/playwright-cli/node_modules/playwright/lib/install/installer.js:56:5)
(node:3524) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:3524) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The error is caused either by Playwright.InstallAsync(); or Playwright.CreateAsync(); because it gets thrown before i can launch a browser i.e. playwright.Webkit.LaunchAsync(...).

I saw that there is the same issue in the upstream repository https://github.com/microsoft/playwright/issues/2789 so maybe it’s easy to get this into Playwright-Sharp 🤞

thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:32 (31 by maintainers)

github_iconTop GitHub Comments

1reaction
nor0xcommented, Dec 28, 2020

0.170.2 works great in my first tests. If any errors related with my previous tests occur, i will create a new issue.

Thanks @kblok !

1reaction
kblokcommented, Dec 16, 2020

The playwright cache keeps track of the directories using a browser version. If that directory is removed, and there are no more directories using that version, that browser version will be removed.

In local builds, we are using the place where the packages are stored (maybe we can improve that in the future). And that works for the main use case: UI testing.

Besides all that. You will need to call InstallAsync in your app, because your app clients won’t have the browsers installed.

i have updated my code and added await Playwright.InstallAsync() before calling Playwright.CreateAsync(), but i’m getting the same error as before

I’ll take a look

Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS Big Sur is compatible with these computers
macOS Big Sur is compatible with these computers · MacBook Pro · MacBook Air · MacBook · iMac Pro · iMac · Mac...
Read more >
What's new in the updates for macOS Big Sur
macOS Big Sur 11.3 adds support for AirTag, includes iPhone and iPad app improvements for Macs with M1, introduces separate skin tone variations ......
Read more >
macOS Big Sur
macOS Big Sur is the final version of macOS to support Macs with Nvidia graphics cards, specifically the 15-inch dual graphics late 2013...
Read more >
Support for MacOS Big Sur 11.0 - Apex One (Mac)
Learn about the details of Apex One (Mac) support for MacOS Big Sur 11.0 which includes the release dates of the Apex One...
Read more >
MacOS 11 Big Sur: Compatibility Guide
Most recent generations of Macs are compatible with macOS 11 Big Sur. Some past generations of Macs are not able to use Big...
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