Skip to content

Commit 75a11fb

Browse files
feat(roll): roll to ToT Playwright (10-12-25) (#1942)
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
1 parent 9e034c5 commit 75a11fb

File tree

7 files changed

+32
-26
lines changed

7 files changed

+32
-26
lines changed

dotnet/docs/locators.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ Alternatively, filter by **not having** text:
477477

478478
```csharp
479479
// 5 in-stock items
480-
await Expect(Page.getByRole(AriaRole.Listitem).Filter(new() { HasNotText = "Out of stock" }))
480+
await Expect(Page.GetByRole(AriaRole.Listitem).Filter(new() { HasNotText = "Out of stock" }))
481481
.ToHaveCountAsync(5);
482482
```
483483

java/docs/locators.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,10 @@ Locators support an option to only select elements that have or have not a desce
520520
```java
521521
page.getByRole(AriaRole.LISTITEM)
522522
.filter(new Locator.FilterOptions()
523-
.setHas(page.GetByRole(AriaRole.HEADING, new Page.GetByRoleOptions()
523+
.setHas(page.getByRole(AriaRole.HEADING, new Page.GetByRoleOptions()
524524
.setName("Product 2"))))
525525
.getByRole(AriaRole.BUTTON,
526-
new Page.GetByRoleOptions().setName("Add to cart"))
526+
new Locator.GetByRoleOptions().setName("Add to cart"))
527527
.click();
528528
```
529529

@@ -644,7 +644,7 @@ Consider a page with two buttons, the first invisible and the second [visible](.
644644
* This will only find a second button, because it is visible, and then click it.
645645

646646
```java
647-
page.locator("button").filter(new Locator.FilterOptions.setVisible(true)).click();
647+
page.locator("button").filter(new Locator.FilterOptions().setVisible(true)).click();
648648
```
649649

650650
## Lists

nodejs/docs/api/class-browser.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,19 @@ If directly using this method to create [BrowserContext]s, it is best practice t
171171
- `agent` [Object] *(optional)* <font size="2">Added in: v1.58</font><a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-agent"/><a href="#browser-new-context-option-agent" class="list-anchor">#</a>
172172
- `provider` [string]
173173

174-
LLM provider to use
174+
LLM provider to use.
175175
- `model` [string]
176176

177-
Model identifier within provider
177+
Model identifier within provider.
178178
- `cacheFile` [string] *(optional)*
179179

180180
Cache file to use/generate code for performed actions into. Cache is not used if not specified (default).
181181
- `cacheMode` ['force'] | ['ignore'] | ['auto'] *(optional)*
182182

183-
Cache control, defauls to 'auto'
183+
Cache control, defaults to 'auto'.
184+
- `secrets` [Object]&lt;[string], [string]&gt; *(optional)*
185+
186+
Secrets to hide from the LLM.
184187

185188
Agent settings for [page.perform()](/api/class-page.mdx#page-perform) and [page.extract()](/api/class-page.mdx#page-extract).
186189
- `baseURL` [string] *(optional)*<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-new-context-option-base-url"/><a href="#browser-new-context-option-base-url" class="list-anchor">#</a>

nodejs/docs/api/class-testoptions.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,19 @@ testOptions.agent
108108
- [Object]
109109
- `provider` [string]
110110

111-
LLM provider to use
111+
LLM provider to use.
112112
- `model` [string]
113113

114-
Model identifier within provider
114+
Model identifier within provider.
115115
- `cacheFile` [string] *(optional)*
116116

117117
Cache file to use/generate code for performed actions into. Cache is not used if not specified (default).
118118
- `cacheMode` ['force'] | ['ignore'] | ['auto'] *(optional)*
119119

120-
Cache control, defauls to 'auto'
120+
Cache control, defaults to 'auto'.
121+
- `secrets` [Object]&lt;[string], [string]&gt; *(optional)*
122+
123+
Secrets to hide from the LLM.
121124

122125
---
123126

python/docs/ci.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
name: 'Playwright Tests'
8484
runs-on: ubuntu-latest
8585
container:
86-
image: mcr.microsoft.com/playwright/python:v1.56.0-noble
86+
image: mcr.microsoft.com/playwright/python:v1.57.0-noble
8787
options: --user 1001
8888
steps:
8989
- uses: actions/checkout@v5
@@ -173,7 +173,7 @@ trigger:
173173
174174
pool:
175175
vmImage: ubuntu-latest
176-
container: mcr.microsoft.com/playwright/python:v1.56.0-noble
176+
container: mcr.microsoft.com/playwright/python:v1.57.0-noble
177177
178178
steps:
179179
- task: UsePythonVersion@0
@@ -197,7 +197,7 @@ Running Playwright on CircleCI is very similar to running on GitHub Actions. In
197197
executors:
198198
pw-noble-development:
199199
docker:
200-
- image: mcr.microsoft.com/playwright/python:v1.56.0-noble
200+
- image: mcr.microsoft.com/playwright/python:v1.57.0-noble
201201
```
202202

203203
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.
@@ -208,7 +208,7 @@ Jenkins supports Docker agents for pipelines. Use the [Playwright Docker image](
208208

209209
```groovy
210210
pipeline {
211-
agent { docker { image 'mcr.microsoft.com/playwright/python:v1.56.0-noble' } }
211+
agent { docker { image 'mcr.microsoft.com/playwright/python:v1.57.0-noble' } }
212212
stages {
213213
stage('e2e-tests') {
214214
steps {
@@ -225,7 +225,7 @@ pipeline {
225225
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)).
226226

227227
```yml
228-
image: mcr.microsoft.com/playwright/python:v1.56.0-noble
228+
image: mcr.microsoft.com/playwright/python:v1.57.0-noble
229229
```
230230

231231
### GitLab CI
@@ -238,7 +238,7 @@ stages:
238238
239239
tests:
240240
stage: test
241-
image: mcr.microsoft.com/playwright/python:v1.56.0-noble
241+
image: mcr.microsoft.com/playwright/python:v1.57.0-noble
242242
script:
243243
...
244244
```

python/docs/docker.mdx

Lines changed: 9 additions & 9 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/python:v1.56.0-noble
25+
docker pull mcr.microsoft.com/playwright/python:v1.57.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/python:v1.56.0-noble /bin/bash
37+
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.57.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/python:v1.56.0-noble /bin/bash
45+
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.57.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.56.0-noble /bin/sh -c "npx -y playwright@1.56.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.57.0-noble /bin/sh -c "npx -y playwright@1.57.0 run-server --port 3000 --host 0.0.0.0"
8686
```
8787

8888
#### Connecting to the Server
@@ -122,7 +122,7 @@ async with async_playwright() as p:
122122
If you need to access local servers from within the Docker container:
123123

124124
```bash
125-
docker run --add-host=hostmachine:host-gateway -p 3000:3000 --rm --init -it --workdir /home/pwuser --user pwuser mcr.microsoft.com/playwright:v1.56.0-noble /bin/sh -c "npx -y playwright@1.56.0 run-server --port 3000 --host 0.0.0.0"
125+
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"
126126
```
127127

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

157157
We currently publish images with the following tags:
158-
- `:v1.56.0` - Playwright v1.56.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
159-
- `:v1.56.0-noble` - Playwright v1.56.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
160-
- `:v1.56.0-jammy` - Playwright v1.56.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
158+
- `:v1.57.0` - Playwright v1.57.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
159+
- `:v1.57.0-noble` - Playwright v1.57.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
160+
- `:v1.57.0-jammy` - Playwright v1.57.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
161161

162162
:::note
163163

@@ -181,7 +181,7 @@ To run Playwright inside Docker, you need to have Python, [Playwright browsers](
181181
```Dockerfile
182182
FROM python:3.12-bookworm
183183

184-
RUN pip install playwright==@1.56.0 && \
184+
RUN pip install playwright==@1.57.0 && \
185185
playwright install --with-deps
186186
```
187187

src/components/GitHubStarButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type StarButtonProps = {
66
repo: string
77
}
88

9-
const STARS = '79k+'; // NOTE: this line is generated by src/generate.js. Do not change!
9+
const STARS = '80k+'; // NOTE: this line is generated by src/generate.js. Do not change!
1010

1111
const StarButton: React.FC<StarButtonProps> = ({owner, repo}) => {
1212
if (!repo)

0 commit comments

Comments
 (0)