You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/browsers.md
+66-11
Original file line number
Diff line number
Diff line change
@@ -338,30 +338,85 @@ dotnet test --settings:webkit.runsettings
338
338
339
339
For Google Chrome, Microsoft Edge and other Chromium-based browsers, by default, Playwright uses open source Chromium builds. Since the Chromium project is ahead of the branded browsers, when the world is on Google Chrome N, Playwright already supports Chromium N+1 that will be released in Google Chrome and Microsoft Edge a few weeks later.
340
340
341
-
Playwright ships a regular Chromium build for headed operations and a separate [Chromium headless shell](https://developer.chrome.com/blog/chrome-headless-shell) for headless mode. These two behave differently in some edge cases, but the majority of testing scenarios are not affected. Note this behavior has changed in Playwright version 1.49, see[issue #33566](https://github.com/microsoft/playwright/issues/33566) for details.
341
+
Playwright ships a regular Chromium build for headed operations and a separate [chromium headless shell](https://developer.chrome.com/blog/chrome-headless-shell) for headless mode. See[issue #33566](https://github.com/microsoft/playwright/issues/33566) for details.
342
342
343
-
#### Save on download size
343
+
#### Optimize download size on CI
344
344
345
-
If you are only running tests in headless, for example on CI, you can avoid downloading a headed version of Chromium by specifying `chromium-headless-shell` during installation.
345
+
If you are only running tests in headless mode, for example on CI, you can avoid downloading a regular version of Chromium by passing `--only-shell` during installation.
You can opt into the new headless mode by using `'chromium'` channel. As [official Chrome documentation puts it](https://developer.chrome.com/blog/chrome-headless-shell):
370
+
371
+
> New Headless on the other hand is the real Chrome browser, and is thus more authentic, reliable, and offers more features. This makes it more suitable for high-accuracy end-to-end web app testing or browser extension testing.
372
+
373
+
See [issue #33566](https://github.com/microsoft/playwright/issues/33566) for details.
Copy file name to clipboardExpand all lines: docs/src/release-notes-js.md
+15-32
Original file line number
Diff line number
Diff line change
@@ -40,58 +40,41 @@ Learn more in the [aria snapshots guide](./aria-snapshots).
40
40
41
41
### Breaking: channels `chrome`, `msedge` and similar switch to new headless
42
42
43
-
Prior to this release, Playwright was running the old established implementation of [Chromium headless mode](https://developer.chrome.com/docs/chromium/headless). However, Chromium had entirely **switched to the new headless mode**, and **removed the old one**.
43
+
This change affects you if you're using one of the following channels in your `playwright.config.ts`:
44
+
-`chrome`, `chrome-dev`, `chrome-beta`, or `chrome-canary`
45
+
-`msedge`, `msedge-dev`, `msedge-beta`, or `msedge-canary`
If you are using a browser channel, for example `'chrome'` or `'msedge'`, the headless mode switch **will affect you**. Most likely, you will have to update some of your tests and all of your screenshot expectations. See [issue #33566](https://github.com/microsoft/playwright/issues/33566) for more details.
49
+
After updating to Playwright v1.49, run your test suite. If it still passes, you're good to go. If not, you will probably need to update your snapshots, and adapt some of your test code around PDF viewers and extensions. See [issue #33566](https://github.com/microsoft/playwright/issues/33566) for more details.
48
50
49
-
#### Chromium headless shell
50
-
51
-
Starting with this release, Playwright downloads and runs two different browser builds - one is a regular headed chromium and the other is a chromium headless shell. This should be transparent to you, **no action is needed**. You can learn more in [issue #33566](https://github.com/microsoft/playwright/issues/33566).
52
-
53
-
If you are only running tests in headless, for example on CI, you can avoid downloading a headed version of Chromium by specifying `chromium-headless-shell` during installation.
Playwright will skip downloading headed chromium build, and will use `chromium-headless-shell` when running headless.
53
+
- There will be no more updates for WebKit on Ubuntu 20.04 and Debian 11. We recommend updating your OS to a later version.
54
+
- Package `@playwright/experimental-ct-vue2` will no longer be updated.
55
+
- Package `@playwright/experimental-ct-solid` will no longer be updated.
61
56
62
-
#### Opt-in to new headless
57
+
###Try new Chromium headless
63
58
64
-
We encourage everyone to try and switch to the new headless by using the `chromium-next` channel.
59
+
You can opt into the new headless mode by using `'chromium'` channel. As [official Chrome documentation puts it](https://developer.chrome.com/blog/chrome-headless-shell):
65
60
66
-
First, install this channel prior to running tests. Make sure to list all the browsers that you use.
61
+
> New Headless on the other hand is the real Chrome browser, and is thus more authentic, reliable, and offers more features. This makes it more suitable for high-accuracy end-to-end web app testing or browser extension testing.
Then update your config file to specify `'chromium-next'` channel.
63
+
See [issue #33566](https://github.com/microsoft/playwright/issues/33566) for the list of possible breakages you could encounter and more details on Chromium headless. Please file an issue if you see any problems after opting in.
0 commit comments