Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(roll): roll to 1.49 Playwright #1605

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions dotnet/versioned_sidebars/version-stable-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
"type": "category",
"label": "Guides",
"items": [
{
"type": "doc",
"id": "aria-snapshots"
},
{
"type": "doc",
"id": "input"
Expand Down Expand Up @@ -141,16 +137,20 @@
},
{
"type": "doc",
"id": "pom"
"id": "pages"
},
{
"type": "doc",
"id": "pages"
"id": "pom"
},
{
"type": "doc",
"id": "screenshots"
},
{
"type": "doc",
"id": "aria-snapshots"
},
{
"type": "doc",
"id": "codegen"
Expand Down
10 changes: 5 additions & 5 deletions java/versioned_sidebars/version-stable-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
"type": "category",
"label": "Guides",
"items": [
{
"type": "doc",
"id": "aria-snapshots"
},
{
"type": "doc",
"id": "accessibility-testing"
Expand Down Expand Up @@ -147,6 +143,10 @@
"type": "doc",
"id": "other-locators"
},
{
"type": "doc",
"id": "pages"
},
{
"type": "doc",
"id": "pom"
Expand All @@ -157,7 +157,7 @@
},
{
"type": "doc",
"id": "pages"
"id": "aria-snapshots"
},
{
"type": "doc",
Expand Down
12 changes: 6 additions & 6 deletions nodejs/versioned_sidebars/version-stable-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@
"type": "doc",
"id": "library"
},
{
"type": "doc",
"id": "aria-snapshots"
},
{
"type": "doc",
"id": "accessibility-testing"
Expand Down Expand Up @@ -236,16 +232,20 @@
},
{
"type": "doc",
"id": "pom"
"id": "pages"
},
{
"type": "doc",
"id": "pages"
"id": "pom"
},
{
"type": "doc",
"id": "screenshots"
},
{
"type": "doc",
"id": "aria-snapshots"
},
{
"type": "doc",
"id": "test-snapshots"
Expand Down
12 changes: 6 additions & 6 deletions python/versioned_docs/version-stable/ci.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
name: 'Playwright Tests'
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright/python:v1.48.0-noble
image: mcr.microsoft.com/playwright/python:v1.49.0-noble
options: --user 1001
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -178,7 +178,7 @@ trigger:

pool:
vmImage: ubuntu-latest
container: mcr.microsoft.com/playwright/python:v1.48.0-noble
container: mcr.microsoft.com/playwright/python:v1.49.0-noble

steps:
- task: UsePythonVersion@0
Expand All @@ -202,7 +202,7 @@ Running Playwright on CircleCI is very similar to running on GitHub Actions. In
executors:
pw-noble-development:
docker:
- image: mcr.microsoft.com/playwright/python:v1.48.0-noble
- image: mcr.microsoft.com/playwright/python:v1.49.0-noble
```

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

```groovy
pipeline {
agent { docker { image 'mcr.microsoft.com/playwright/python:v1.48.0-noble' } }
agent { docker { image 'mcr.microsoft.com/playwright/python:v1.49.0-noble' } }
stages {
stage('e2e-tests') {
steps {
Expand All @@ -230,7 +230,7 @@ pipeline {
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)).

```yml
image: mcr.microsoft.com/playwright/python:v1.48.0-noble
image: mcr.microsoft.com/playwright/python:v1.49.0-noble
```

### GitLab CI
Expand All @@ -243,7 +243,7 @@ stages:

tests:
stage: test
image: mcr.microsoft.com/playwright/python:v1.48.0-noble
image: mcr.microsoft.com/playwright/python:v1.49.0-noble
script:
...
```
Expand Down
14 changes: 7 additions & 7 deletions python/versioned_docs/version-stable/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This Docker image is intended to be used for testing and development purposes on
### Pull the image

```bash
docker pull mcr.microsoft.com/playwright/python:v1.48.0-noble
docker pull mcr.microsoft.com/playwright/python:v1.49.0-noble
```

### Run the image
Expand All @@ -34,15 +34,15 @@ By default, the Docker image will use the `root` user to run the browsers. This
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.

```bash
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.48.0-noble /bin/bash
docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.49.0-noble /bin/bash
```

#### Crawling and scraping

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.

```bash
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.48.0-noble /bin/bash
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.49.0-noble /bin/bash
```

[`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:
Expand Down Expand Up @@ -75,9 +75,9 @@ See our [Continuous Integration guides](./ci.mdx) for sample configs.
See [all available image tags].

We currently publish images with the following tags:
- `:v1.48.0` - Playwright v1.48.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
- `:v1.48.0-noble` - Playwright v1.48.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
- `:v1.48.0-jammy` - Playwright v1.48.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
- `:v1.49.0` - Playwright v1.49.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
- `:v1.49.0-noble` - Playwright v1.49.0 release docker image based on Ubuntu 24.04 LTS (Noble Numbat).
- `:v1.49.0-jammy` - Playwright v1.49.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).

:::note

Expand All @@ -101,7 +101,7 @@ To run Playwright inside Docker, you need to have Python, [Playwright browsers](
```Dockerfile
FROM python:3.12-bookworm

RUN pip install playwright==@1.48.0 && \
RUN pip install playwright==@1.49.0 && \
playwright install --with-deps
```

Expand Down
12 changes: 6 additions & 6 deletions python/versioned_sidebars/version-stable-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
"type": "category",
"label": "Guides",
"items": [
{
"type": "doc",
"id": "aria-snapshots"
},
{
"type": "doc",
"id": "input"
Expand Down Expand Up @@ -145,16 +141,20 @@
},
{
"type": "doc",
"id": "pom"
"id": "pages"
},
{
"type": "doc",
"id": "pages"
"id": "pom"
},
{
"type": "doc",
"id": "screenshots"
},
{
"type": "doc",
"id": "aria-snapshots"
},
{
"type": "doc",
"id": "codegen"
Expand Down
Loading