Skip to content

Commit b19f7bf

Browse files
feat(roll): roll to 1.58 Playwright (#1968)
1 parent 3bd57be commit b19f7bf

13 files changed

Lines changed: 151 additions & 64 deletions

File tree

dotnet/versioned_docs/version-stable/ci.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
name: 'Playwright Tests'
7777
runs-on: ubuntu-latest
7878
container:
79-
image: mcr.microsoft.com/playwright/dotnet:v1.57.0-noble
79+
image: mcr.microsoft.com/playwright/dotnet:v1.58.0-noble
8080
options: --user 1001
8181
steps:
8282
- uses: actions/checkout@v5
@@ -159,7 +159,7 @@ trigger:
159159
160160
pool:
161161
vmImage: ubuntu-latest
162-
container: mcr.microsoft.com/playwright/dotnet:v1.57.0-noble
162+
container: mcr.microsoft.com/playwright/dotnet:v1.58.0-noble
163163
164164
steps:
165165
- task: UseDotNet@2
@@ -182,7 +182,7 @@ Running Playwright on CircleCI is very similar to running on GitHub Actions. In
182182
executors:
183183
pw-noble-development:
184184
docker:
185-
- image: mcr.microsoft.com/playwright/dotnet:v1.57.0-noble
185+
- image: mcr.microsoft.com/playwright/dotnet:v1.58.0-noble
186186
```
187187

188188
Note: When using the docker agent definition, you are specifying the resource class of where playwright runs to the 'medium' tier [here](https://circleci.com/docs/configuration-reference?#docker-execution-environment). The default behavior of Playwright is to set the number of workers to the detected core count (2 in the case of the medium tier). Overriding the number of workers to greater than this number will cause unnecessary timeouts and failures.
@@ -193,7 +193,7 @@ Jenkins supports Docker agents for pipelines. Use the [Playwright Docker image](
193193

194194
```groovy
195195
pipeline {
196-
agent { docker { image 'mcr.microsoft.com/playwright/dotnet:v1.57.0-noble' } }
196+
agent { docker { image 'mcr.microsoft.com/playwright/dotnet:v1.58.0-noble' } }
197197
stages {
198198
stage('e2e-tests') {
199199
steps {
@@ -210,7 +210,7 @@ pipeline {
210210
Bitbucket Pipelines can use public [Docker images as build environments](https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html). To run Playwright tests on Bitbucket, use our public Docker image ([see Dockerfile](./docker.mdx)).
211211

212212
```yml
213-
image: mcr.microsoft.com/playwright/dotnet:v1.57.0-noble
213+
image: mcr.microsoft.com/playwright/dotnet:v1.58.0-noble
214214
```
215215

216216
### GitLab CI

dotnet/versioned_docs/version-stable/docker.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This Docker image is intended to be used for testing and development purposes on
2222
### Pull the image
2323

2424
```bash
25-
docker pull mcr.microsoft.com/playwright/dotnet:v1.57.0-noble
25+
docker pull mcr.microsoft.com/playwright/dotnet:v1.58.0-noble
2626
```
2727

2828
### Run the image
@@ -34,15 +34,15 @@ By default, the Docker image will use the `root` user to run the browsers. This
3434
On trusted websites, you can avoid creating a separate user and use root for it since you trust the code which will run on the browsers.
3535

3636
```bash
37-
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.57.0-noble /bin/bash
37+
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.58.0-noble /bin/bash
3838
```
3939

4040
#### Crawling and scraping
4141

4242
On untrusted websites, it's recommended to use a separate user for launching the browsers in combination with the seccomp profile. Inside the container or if you are using the Docker image as a base image you have to use `adduser` for it.
4343

4444
```bash
45-
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.57.0-noble /bin/bash
45+
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.58.0-noble /bin/bash
4646
```
4747

4848
[`seccomp_profile.json`](https://github.com/microsoft/playwright/blob/main/utils/docker/seccomp_profile.json) is needed to run Chromium with sandbox. This is a [default Docker seccomp profile](https://github.com/docker/engine/blob/d0d99b04cf6e00ed3fc27e81fc3d94e7eda70af3/profiles/seccomp/default.json) with extra user namespace cloning permissions:
@@ -82,7 +82,7 @@ You can run Playwright Server in Docker while keeping your tests running on the
8282
Start the Playwright Server in Docker:
8383

8484
```bash
85-
docker run -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.57.0-noble /bin/sh -c "npx -y playwright@1.57.0 run-server --port 3000 --host 0.0.0.0"
85+
docker run -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.58.0-noble /bin/sh -c "npx -y playwright@1.58.0 run-server --port 3000 --host 0.0.0.0"
8686
```
8787

8888
#### Connecting to the Server
@@ -99,7 +99,7 @@ await using var browser = await playwright.Chromium.ConnectAsync("ws://127.0.0.1
9999
If you need to access local servers from within the Docker container:
100100

101101
```bash
102-
docker run --add-host=hostmachine:host-gateway -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.57.0-noble /bin/sh -c "npx -y playwright@1.57.0 run-server --port 3000 --host 0.0.0.0"
102+
docker run --add-host=hostmachine:host-gateway -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.58.0-noble /bin/sh -c "npx -y playwright@1.58.0 run-server --port 3000 --host 0.0.0.0"
103103
```
104104

105105
This makes `hostmachine` point to the host's localhost. Your tests should use `hostmachine` instead of `localhost` when accessing local servers.
@@ -132,9 +132,9 @@ Once this is enabled you can open the port specified in a new browser tab and yo
132132
See [all available image tags].
133133

134134
We currently publish images with the following tags:
135-
- `:v1.57.0` - Playwright v1.57.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
136-
- `:v1.57.0-noble` - Playwright v1.57.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
137-
- `:v1.57.0-jammy` - Playwright v1.57.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
135+
- `:v1.58.0` - Playwright v1.58.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
136+
- `:v1.58.0-noble` - Playwright v1.58.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
137+
- `:v1.58.0-jammy` - Playwright v1.58.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
138138

139139
:::note
140140

dotnet/versioned_docs/version-stable/release-notes.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,35 @@ import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88
import HTMLCard from '@site/src/components/HTMLCard';
99

10+
## Version 1.58
11+
12+
### UI Mode and Trace Viewer Improvements
13+
- New 'system' theme option follows your OS dark/light mode preference
14+
- Search functionality (Cmd/Ctrl+F) is now available in code editors
15+
- Network details panel has been reorganized for better usability
16+
- JSON responses are now automatically formatted for readability
17+
18+
Thanks to [@cpAdm](https://github.com/cpAdm) for contributing these improvements!
19+
20+
### Miscellaneous
21+
22+
[BrowserType.ConnectOverCDPAsync()](/api/class-browsertype.mdx#browser-type-connect-over-cdp) now accepts an `IsLocal` option. When set to `true`, it tells Playwright that it runs on the same host as the CDP server, enabling file system optimizations.
23+
24+
### Breaking Changes ⚠️
25+
- Removed `_react` and `_vue` selectors. See [locators guide](./locators.mdx) for alternatives.
26+
- Removed `:light` selector engine suffix. Use standard CSS selectors instead.
27+
- Option `Devtools` from [BrowserType.LaunchAsync()](/api/class-browsertype.mdx#browser-type-launch) has been removed. Use `Args = new[] { "--auto-open-devtools-for-tabs" }` instead.
28+
- Removed macOS 13 support for WebKit. We recommend to upgrade your macOS version, or keep using an older Playwright version.
29+
30+
### Browser Versions
31+
- Chromium 145.0.7632.6
32+
- Mozilla Firefox 146.0.1
33+
- WebKit 26.0
34+
35+
This version was also tested against the following stable channels:
36+
- Google Chrome 144
37+
- Microsoft Edge 144
38+
1039
## Version 1.57
1140

1241
### Chrome for Testing

java/versioned_docs/version-stable/ci.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
name: 'Playwright Tests'
7676
runs-on: ubuntu-latest
7777
container:
78-
image: mcr.microsoft.com/playwright/java:v1.57.0-noble
78+
image: mcr.microsoft.com/playwright/java:v1.58.0-noble
7979
options: --user 1001
8080
steps:
8181
- uses: actions/checkout@v5
@@ -160,7 +160,7 @@ trigger:
160160
161161
pool:
162162
vmImage: ubuntu-latest
163-
container: mcr.microsoft.com/playwright/java:v1.57.0-noble
163+
container: mcr.microsoft.com/playwright/java:v1.58.0-noble
164164
165165
steps:
166166
- task: JavaToolInstaller@1
@@ -183,7 +183,7 @@ Running Playwright on CircleCI is very similar to running on GitHub Actions. In
183183
executors:
184184
pw-noble-development:
185185
docker:
186-
- image: mcr.microsoft.com/playwright/java:v1.57.0-noble
186+
- image: mcr.microsoft.com/playwright/java:v1.58.0-noble
187187
```
188188

189189
Note: When using the docker agent definition, you are specifying the resource class of where playwright runs to the 'medium' tier [here](https://circleci.com/docs/configuration-reference?#docker-execution-environment). The default behavior of Playwright is to set the number of workers to the detected core count (2 in the case of the medium tier). Overriding the number of workers to greater than this number will cause unnecessary timeouts and failures.
@@ -194,7 +194,7 @@ Jenkins supports Docker agents for pipelines. Use the [Playwright Docker image](
194194

195195
```groovy
196196
pipeline {
197-
agent { docker { image 'mcr.microsoft.com/playwright/java:v1.57.0-noble' } }
197+
agent { docker { image 'mcr.microsoft.com/playwright/java:v1.58.0-noble' } }
198198
stages {
199199
stage('e2e-tests') {
200200
steps {
@@ -211,7 +211,7 @@ pipeline {
211211
Bitbucket Pipelines can use public [Docker images as build environments](https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html). To run Playwright tests on Bitbucket, use our public Docker image ([see Dockerfile](./docker.mdx)).
212212

213213
```yml
214-
image: mcr.microsoft.com/playwright/java:v1.57.0-noble
214+
image: mcr.microsoft.com/playwright/java:v1.58.0-noble
215215
```
216216

217217
### GitLab CI
@@ -224,7 +224,7 @@ stages:
224224
225225
tests:
226226
stage: test
227-
image: mcr.microsoft.com/playwright/java:v1.57.0-noble
227+
image: mcr.microsoft.com/playwright/java:v1.58.0-noble
228228
script:
229229
...
230230
```

java/versioned_docs/version-stable/docker.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This Docker image is intended to be used for testing and development purposes on
2222
### Pull the image
2323

2424
```bash
25-
docker pull mcr.microsoft.com/playwright/java:v1.57.0-noble
25+
docker pull mcr.microsoft.com/playwright/java:v1.58.0-noble
2626
```
2727

2828
### Run the image
@@ -34,15 +34,15 @@ By default, the Docker image will use the `root` user to run the browsers. This
3434
On trusted websites, you can avoid creating a separate user and use root for it since you trust the code which will run on the browsers.
3535

3636
```bash
37-
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.57.0-noble /bin/bash
37+
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.58.0-noble /bin/bash
3838
```
3939

4040
#### Crawling and scraping
4141

4242
On untrusted websites, it's recommended to use a separate user for launching the browsers in combination with the seccomp profile. Inside the container or if you are using the Docker image as a base image you have to use `adduser` for it.
4343

4444
```bash
45-
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.57.0-noble /bin/bash
45+
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.58.0-noble /bin/bash
4646
```
4747

4848
[`seccomp_profile.json`](https://github.com/microsoft/playwright/blob/main/utils/docker/seccomp_profile.json) is needed to run Chromium with sandbox. This is a [default Docker seccomp profile](https://github.com/docker/engine/blob/d0d99b04cf6e00ed3fc27e81fc3d94e7eda70af3/profiles/seccomp/default.json) with extra user namespace cloning permissions:
@@ -82,7 +82,7 @@ You can run Playwright Server in Docker while keeping your tests running on the
8282
Start the Playwright Server in Docker:
8383

8484
```bash
85-
docker run -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.57.0-noble /bin/sh -c "npx -y playwright@1.57.0 run-server --port 3000 --host 0.0.0.0"
85+
docker run -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.58.0-noble /bin/sh -c "npx -y playwright@1.58.0 run-server --port 3000 --host 0.0.0.0"
8686
```
8787

8888
#### Connecting to the Server
@@ -107,7 +107,7 @@ public class App {
107107
If you need to access local servers from within the Docker container:
108108

109109
```bash
110-
docker run --add-host=hostmachine:host-gateway -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.57.0-noble /bin/sh -c "npx -y playwright@1.57.0 run-server --port 3000 --host 0.0.0.0"
110+
docker run --add-host=hostmachine:host-gateway -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.58.0-noble /bin/sh -c "npx -y playwright@1.58.0 run-server --port 3000 --host 0.0.0.0"
111111
```
112112

113113
This makes `hostmachine` point to the host's localhost. Your tests should use `hostmachine` instead of `localhost` when accessing local servers.
@@ -140,9 +140,9 @@ Once this is enabled you can open the port specified in a new browser tab and yo
140140
See [all available image tags].
141141

142142
We currently publish images with the following tags:
143-
- `:v1.57.0` - Playwright v1.57.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
144-
- `:v1.57.0-noble` - Playwright v1.57.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
145-
- `:v1.57.0-jammy` - Playwright v1.57.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
143+
- `:v1.58.0` - Playwright v1.58.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
144+
- `:v1.58.0-noble` - Playwright v1.58.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
145+
- `:v1.58.0-jammy` - Playwright v1.58.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
146146

147147
:::note
148148

java/versioned_docs/version-stable/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class App {
5858
<dependency>
5959
<groupId>com.microsoft.playwright</groupId>
6060
<artifactId>playwright</artifactId>
61-
<version>1.57.0</version>
61+
<version>1.58.0</version>
6262
</dependency>
6363
</dependencies>
6464
<build>

java/versioned_docs/version-stable/release-notes.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,35 @@ import Tabs from '@theme/Tabs';
77
import TabItem from '@theme/TabItem';
88
import HTMLCard from '@site/src/components/HTMLCard';
99

10+
## Version 1.58
11+
12+
### UI Mode and Trace Viewer Improvements
13+
- New 'system' theme option follows your OS dark/light mode preference
14+
- Search functionality (Cmd/Ctrl+F) is now available in code editors
15+
- Network details panel has been reorganized for better usability
16+
- JSON responses are now automatically formatted for readability
17+
18+
Thanks to [@cpAdm](https://github.com/cpAdm) for contributing these improvements!
19+
20+
### Miscellaneous
21+
22+
[BrowserType.connectOverCDP()](/api/class-browsertype.mdx#browser-type-connect-over-cdp) now accepts an `isLocal` option. When set to `true`, it tells Playwright that it runs on the same host as the CDP server, enabling file system optimizations.
23+
24+
### Breaking Changes ⚠️
25+
- Removed `_react` and `_vue` selectors. See [locators guide](./locators.mdx) for alternatives.
26+
- Removed `:light` selector engine suffix. Use standard CSS selectors instead.
27+
- Option `devtools` from [BrowserType.launch()](/api/class-browsertype.mdx#browser-type-launch) has been removed. Use `setArgs(Arrays.asList("--auto-open-devtools-for-tabs"))` instead.
28+
- Removed macOS 13 support for WebKit. We recommend to upgrade your macOS version, or keep using an older Playwright version.
29+
30+
### Browser Versions
31+
- Chromium 145.0.7632.6
32+
- Mozilla Firefox 146.0.1
33+
- WebKit 26.0
34+
35+
This version was also tested against the following stable channels:
36+
- Google Chrome 144
37+
- Microsoft Edge 144
38+
1039
## Version 1.57
1140

1241
### Chrome for Testing

java/versioned_docs/version-stable/test-runners.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ repositories {
198198
}
199199
200200
dependencies {
201-
implementation 'com.microsoft.playwright:playwright:1.57.0'
201+
implementation 'com.microsoft.playwright:playwright:1.58.0'
202202
}
203203
204204
application {
@@ -231,7 +231,7 @@ repositories {
231231
}
232232
233233
dependencies {
234-
implementation("com.microsoft.playwright:playwright:1.57.0")
234+
implementation("com.microsoft.playwright:playwright:1.58.0")
235235
}
236236
237237
application {

0 commit comments

Comments
 (0)