playwright: [BUG][Webkit] WebKit does not work with macOS Monterey
Fix: npm i -D @playwright/test@1.17.0-next-alpha-nov-5-2021.
It gets included in version 1.17.0.
Context:
- Playwright Version: 1.16.1
- Operating System: MacOS Monterey 12.0.1
- Node.js: 14.18.0
- Browser: Webkit
Code Snippet
const myContext = await browser.newContext();
Describe the bug
Since latest upgrade of MacOS (Monterey 12.0.1) all my tests fail with webkit browser (headless or not).
The fail is detected when instantiating browser.newContext() with the following error: browser.newContext: Target closed

This is only with webkit, everything was ok before the MacOS upgrade, and everything is ok with Firefox and Chromium.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (4 by maintainers)
Please install
npm i @playwright/test@1.17.0-next-alpha-nov-5-2021.(Background: with our current release changes which we cherry-pick to the previous release gets released and tagged under @next tag. This gets fixed with the next release and thats the reason why you are getting a 1.16.3-* version and not a 1.17.0* version. Sorry for the inconvenience!)
@KnightJW1913 We do not cherry pick new browsers to patch releases unless that’s an emergency that affects a significant amount of users.
1.17 is scheduled in a few weeks; would using @next version work for you meanwhile?
This is fixed on tip-of-tree Playwright with webkit build 1566; we might cherry pick this to 1.16.3 so keeping this open