Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: cut v1.25 branch (#16390)
Andrey Lushnikov0c7f0860963d
diff --git a/docs/src/ci.md b/docs/src/ci.mdindex 070da50180..ade4ef41c7 100644--- a/docs/src/ci.md+++ b/docs/src/ci.md@@ -176,7 +176,7 @@ steps:name: 'Playwright Tests'runs-on: ubuntu-latestcontainer:- image: mcr.microsoft.com/playwright:v1.25.0-focal+ image: mcr.microsoft.com/playwright:v1.26.0-focalsteps:- uses: actions/checkout@v3- uses: actions/setup-node@v2@@ -194,7 +194,7 @@ steps:name: 'Playwright Tests'runs-on: ubuntu-latestcontainer:- image: mcr.microsoft.com/playwright:v1.25.0-focal+ image: mcr.microsoft.com/playwright:v1.26.0-focalsteps:- uses: actions/checkout@v3- name: Set up Python@@ -218,7 +218,7 @@ steps:name: 'Playwright Tests'runs-on: ubuntu-latestcontainer:- image: mcr.microsoft.com/playwright:v1.25.0-focal+ image: mcr.microsoft.com/playwright:v1.26.0-focalsteps:- uses: actions/checkout@v3- uses: actions/setup-java@v3@@ -239,7 +239,7 @@ steps:name: 'Playwright Tests'runs-on: ubuntu-latestcontainer:- image: mcr.microsoft.com/playwright:v1.25.0-focal+ image: mcr.microsoft.com/playwright:v1.26.0-focalsteps:- uses: actions/checkout@v3- name: Setup dotnet@@ -264,7 +264,7 @@ steps:name: 'Playwright Tests - ${{ matrix.project }} - Shard ${{ matrix.shardIndex }} of ${{ matrix.shardTotal }}'runs-on: ubuntu-latestcontainer:- image: mcr.microsoft.com/playwright:v1.25.0-focal+ image: mcr.microsoft.com/playwright:v1.26.0-focalstrategy:fail-fast: falsematrix:@@ -297,7 +297,7 @@ Alternatively, you can use [Command line tools](./cli.md#install-system-dependenpool:vmImage: 'ubuntu-20.04'-container: mcr.microsoft.com/playwright:v1.25.0-focal+container: mcr.microsoft.com/playwright:v1.26.0-focalsteps:...@@ -311,7 +311,7 @@ Running Playwright on CircleCI requires the following steps:```ymldocker:- - image: mcr.microsoft.com/playwright:v1.25.0-focal+ - image: mcr.microsoft.com/playwright:v1.26.0-focalenvironment:NODE_ENV: development # Needed if playwright is in `devDependencies````@@ -333,7 +333,7 @@ to run tests on Jenkins.```groovypipeline {- agent { docker { image 'mcr.microsoft.com/playwright:v1.25.0-focal' } }+ agent { docker { image 'mcr.microsoft.com/playwright:v1.26.0-focal' } }stages {stage('e2e-tests') {steps {@@ -351,7 +351,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.md)).```yml-image: mcr.microsoft.com/playwright:v1.25.0-focal+image: mcr.microsoft.com/playwright:v1.26.0-focal```### GitLab CI@@ -364,7 +364,7 @@ stages:tests:stage: test- image: mcr.microsoft.com/playwright:v1.25.0-focal+ image: mcr.microsoft.com/playwright:v1.26.0-focalscript:...```diff --git a/docs/src/docker.md b/docs/src/docker.mdindex c5aa11d509..dee119bcb4 100644--- a/docs/src/docker.md+++ b/docs/src/docker.md@@ -14,19 +14,19 @@ This image is published on [Docker Hub].### Pull the image```bash js-docker pull mcr.microsoft.com/playwright:v1.25.0-focal+docker pull mcr.microsoft.com/playwright:v1.26.0-focal``````bash python-docker pull mcr.microsoft.com/playwright/python:v1.25.0-focal+docker pull mcr.microsoft.com/playwright/python:v1.26.0-focal``````bash csharp-docker pull mcr.microsoft.com/playwright/dotnet:v1.25.0-focal+docker pull mcr.microsoft.com/playwright/dotnet:v1.26.0-focal``````bash java-docker pull mcr.microsoft.com/playwright/java:v1.25.0-focal+docker pull mcr.microsoft.com/playwright/java:v1.26.0-focal```### Run the image@@ -38,19 +38,19 @@ By default, the Docker image will use the `root` user to run the browsers. ThisOn 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 js-docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.25.0-focal /bin/bash+docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.26.0-focal /bin/bash``````bash python-docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.25.0-focal /bin/bash+docker run -it --rm --ipc=host mcr.microsoft.com/playwright/python:v1.26.0-focal /bin/bash``````bash csharp-docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.25.0-focal /bin/bash+docker run -it --rm --ipc=host mcr.microsoft.com/playwright/dotnet:v1.26.0-focal /bin/bash``````bash java-docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.25.0-focal /bin/bash+docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.26.0-focal /bin/bash```#### Crawling and scraping@@ -58,19 +58,19 @@ docker run -it --rm --ipc=host mcr.microsoft.com/playwright/java:v1.25.0-focal /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 js-docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.25.0-focal /bin/bash+docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.26.0-focal /bin/bash``````bash python-docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.25.0-focal /bin/bash+docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/python:v1.26.0-focal /bin/bash``````bash csharp-docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.25.0-focal /bin/bash+docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/dotnet:v1.26.0-focal /bin/bash``````bash java-docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.25.0-focal /bin/bash+docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright/java:v1.26.0-focal /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:diff --git a/docs/src/intro-java.md b/docs/src/intro-java.mdindex 8f7147e804..a876fcdebf 100644--- a/docs/src/intro-java.md+++ b/docs/src/intro-java.md@@ -59,7 +59,7 @@ public class Example {<dependency><groupId>com.microsoft.playwright</groupId><artifactId>playwright</artifactId>- <version>1.25.0</version>+ <version>1.26.0</version></dependency></dependencies><build>diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.mdindex ca2ca03de6..9d97968e7c 100644--- a/docs/src/release-notes-js.md+++ b/docs/src/release-notes-js.md@@ -237,7 +237,7 @@ Read more about [component testing with Playwright](./test-components).}});```-* Playwright now runs on Ubuntu 22 amd64 and Ubuntu 22 arm64. We also publish new docker image `mcr.microsoft.com/playwright:v1.25.0-jammy`.+* Playwright now runs on Ubuntu 22 amd64 and Ubuntu 22 arm64. We also publish new docker image `mcr.microsoft.com/playwright:v1.26.0-jammy`.### ⚠️ Breaking Changes ⚠️diff --git a/docs/src/test-snapshots-js.md b/docs/src/test-snapshots-js.mdindex d1edc0d286..39a343b544 100644--- a/docs/src/test-snapshots-js.md+++ b/docs/src/test-snapshots-js.md@@ -56,7 +56,7 @@ The snapshot name `example-test-1-chromium-darwin.png` consists of a few parts:If you are not on the same operating system as your CI system, you can use Docker to generate/update the screenshots:```bash-docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.25.0-focal /bin/bash+docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.26.0-focal /bin/bashnpm installnpx playwright test --update-snapshots```diff --git a/package-lock.json b/package-lock.jsonindex 3aa70c558b..499861379d 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "playwright-internal",- "version": "1.25.0-next",+ "version": "1.26.0-next","lockfileVersion": 2,"requires": true,"packages": {"": {"name": "playwright-internal",- "version": "1.25.0-next",+ "version": "1.26.0-next","license": "Apache-2.0","workspaces": ["packages/*"@@ -6431,11 +6431,11 @@"version": "0.0.0"},"packages/playwright": {- "version": "1.25.0-next",+ "version": "1.26.0-next","hasInstallScript": true,"license": "Apache-2.0","dependencies": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"},"bin": {"playwright": "cli.js"@@ -6445,11 +6445,11 @@}},"packages/playwright-chromium": {- "version": "1.25.0-next",+ "version": "1.26.0-next","hasInstallScript": true,"license": "Apache-2.0","dependencies": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"},"bin": {"playwright": "cli.js"@@ -6459,7 +6459,7 @@}},"packages/playwright-core": {- "version": "1.25.0-next",+ "version": "1.26.0-next","license": "Apache-2.0","bin": {"playwright": "cli.js"@@ -6470,10 +6470,10 @@},"packages/playwright-ct-react": {"name": "@playwright/experimental-ct-react",- "version": "1.25.0-next",+ "version": "1.26.0-next","license": "Apache-2.0","dependencies": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","@vitejs/plugin-react": "^1.0.7","vite": "^2.9.5"},@@ -6483,10 +6483,10 @@},"packages/playwright-ct-svelte": {"name": "@playwright/experimental-ct-svelte",- "version": "1.25.0-next",+ "version": "1.26.0-next","license": "Apache-2.0","dependencies": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","@sveltejs/vite-plugin-svelte": "^1.0.1","vite": "^3.0.0"},@@ -6565,10 +6565,10 @@},"packages/playwright-ct-vue": {"name": "@playwright/experimental-ct-vue",- "version": "1.25.0-next",+ "version": "1.26.0-next","license": "Apache-2.0","dependencies": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","@vitejs/plugin-vue": "^2.3.1","vite": "^2.9.5"},@@ -6616,10 +6616,10 @@},"packages/playwright-ct-vue2": {"name": "@playwright/experimental-ct-vue2",- "version": "1.25.0-next",+ "version": "1.26.0-next","license": "Apache-2.0","dependencies": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","vite": "^2.9.5","vite-plugin-vue2": "^2.0.1"},@@ -6631,11 +6631,11 @@}},"packages/playwright-firefox": {- "version": "1.25.0-next",+ "version": "1.26.0-next","hasInstallScript": true,"license": "Apache-2.0","dependencies": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"},"bin": {"playwright": "cli.js"@@ -6646,11 +6646,11 @@},"packages/playwright-test": {"name": "@playwright/test",- "version": "1.25.0-next",+ "version": "1.26.0-next","license": "Apache-2.0","dependencies": {"@types/node": "*",- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"},"bin": {"playwright": "cli.js"@@ -6660,11 +6660,11 @@}},"packages/playwright-webkit": {- "version": "1.25.0-next",+ "version": "1.26.0-next","hasInstallScript": true,"license": "Apache-2.0","dependencies": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"},"bin": {"playwright": "cli.js"@@ -7478,7 +7478,7 @@"@playwright/experimental-ct-react": {"version": "file:packages/playwright-ct-react","requires": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","@vitejs/plugin-react": "^1.0.7","vite": "^2.9.5"}@@ -7486,7 +7486,7 @@"@playwright/experimental-ct-svelte": {"version": "file:packages/playwright-ct-svelte","requires": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","@sveltejs/vite-plugin-svelte": "^1.0.1","svelte": "^3.49.0","vite": "^3.0.0"@@ -7522,7 +7522,7 @@"@playwright/experimental-ct-vue": {"version": "file:packages/playwright-ct-vue","requires": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","@vitejs/plugin-vue": "^2.3.1","vite": "^2.9.5"},@@ -7561,7 +7561,7 @@"@playwright/experimental-ct-vue2": {"version": "file:packages/playwright-ct-vue2","requires": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","vite": "^2.9.5","vite-plugin-vue2": "^2.0.1","vue": "^2.6.14"@@ -7571,7 +7571,7 @@"version": "file:packages/playwright-test","requires": {"@types/node": "*",- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}},"@rollup/pluginutils": {@@ -10366,13 +10366,13 @@"playwright": {"version": "file:packages/playwright","requires": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}},"playwright-chromium": {"version": "file:packages/playwright-chromium","requires": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}},"playwright-core": {@@ -10381,13 +10381,13 @@"playwright-firefox": {"version": "file:packages/playwright-firefox","requires": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}},"playwright-webkit": {"version": "file:packages/playwright-webkit","requires": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}},"postcss": {diff --git a/package.json b/package.jsonindex 51acdc0976..793d4ff959 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "playwright-internal","private": true,- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "A high-level API to automate web browsers","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",diff --git a/packages/playwright-chromium/package.json b/packages/playwright-chromium/package.jsonindex 9631452cd6..8a16242728 100644--- a/packages/playwright-chromium/package.json+++ b/packages/playwright-chromium/package.json@@ -1,6 +1,6 @@{"name": "playwright-chromium",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "A high-level API to automate Chromium","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -28,6 +28,6 @@"install": "node install.js"},"dependencies": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}}diff --git a/packages/playwright-core/package.json b/packages/playwright-core/package.jsonindex 8b87e6843f..9e1a6f4d90 100644--- a/packages/playwright-core/package.json+++ b/packages/playwright-core/package.json@@ -1,6 +1,6 @@{"name": "playwright-core",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "A high-level API to automate web browsers","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",diff --git a/packages/playwright-ct-react/package.json b/packages/playwright-ct-react/package.jsonindex 38e626b956..dac50ed88d 100644--- a/packages/playwright-ct-react/package.json+++ b/packages/playwright-ct-react/package.json@@ -1,6 +1,6 @@{"name": "@playwright/experimental-ct-react",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "Playwright Component Testing for React","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -27,7 +27,7 @@},"dependencies": {"@vitejs/plugin-react": "^1.0.7",- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","vite": "^2.9.5"}}diff --git a/packages/playwright-ct-svelte/package.json b/packages/playwright-ct-svelte/package.jsonindex 7bba196454..d23a44b486 100644--- a/packages/playwright-ct-svelte/package.json+++ b/packages/playwright-ct-svelte/package.json@@ -1,6 +1,6 @@{"name": "@playwright/experimental-ct-svelte",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "Playwright Component Testing for Svelte","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -26,7 +26,7 @@}},"dependencies": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","@sveltejs/vite-plugin-svelte": "^1.0.1","vite": "^3.0.0"},diff --git a/packages/playwright-ct-vue/package.json b/packages/playwright-ct-vue/package.jsonindex b55ddf9337..83b99d0340 100644--- a/packages/playwright-ct-vue/package.json+++ b/packages/playwright-ct-vue/package.json@@ -1,6 +1,6 @@{"name": "@playwright/experimental-ct-vue",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "Playwright Component Testing for Vue","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -27,7 +27,7 @@},"dependencies": {"@vitejs/plugin-vue": "^2.3.1",- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","vite": "^2.9.5"}}diff --git a/packages/playwright-ct-vue2/package.json b/packages/playwright-ct-vue2/package.jsonindex dbb691648c..f293c93799 100644--- a/packages/playwright-ct-vue2/package.json+++ b/packages/playwright-ct-vue2/package.json@@ -1,6 +1,6 @@{"name": "@playwright/experimental-ct-vue2",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "Playwright Component Testing for Vue2","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -26,7 +26,7 @@}},"dependencies": {- "@playwright/test": "1.25.0-next",+ "@playwright/test": "1.26.0-next","vite": "^2.9.5","vite-plugin-vue2": "^2.0.1"},diff --git a/packages/playwright-firefox/package.json b/packages/playwright-firefox/package.jsonindex bb9ce82c59..16479327dd 100644--- a/packages/playwright-firefox/package.json+++ b/packages/playwright-firefox/package.json@@ -1,6 +1,6 @@{"name": "playwright-firefox",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "A high-level API to automate Firefox","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -28,6 +28,6 @@"install": "node install.js"},"dependencies": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}}diff --git a/packages/playwright-test/package.json b/packages/playwright-test/package.jsonindex 0ff6e486c9..ffc150ca24 100644--- a/packages/playwright-test/package.json+++ b/packages/playwright-test/package.json@@ -1,6 +1,6 @@{"name": "@playwright/test",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "A high-level API to automate web browsers","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -34,6 +34,6 @@"license": "Apache-2.0","dependencies": {"@types/node": "*",- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}}diff --git a/packages/playwright-webkit/package.json b/packages/playwright-webkit/package.jsonindex d8cf3941b9..a020843357 100644--- a/packages/playwright-webkit/package.json+++ b/packages/playwright-webkit/package.json@@ -1,6 +1,6 @@{"name": "playwright-webkit",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "A high-level API to automate WebKit","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -28,6 +28,6 @@"install": "node install.js"},"dependencies": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}}diff --git a/packages/playwright/package.json b/packages/playwright/package.jsonindex 186552e00f..7ad763bcce 100644--- a/packages/playwright/package.json+++ b/packages/playwright/package.json@@ -1,6 +1,6 @@{"name": "playwright",- "version": "1.25.0-next",+ "version": "1.26.0-next","description": "A high-level API to automate web browsers","repository": "github:Microsoft/playwright","homepage": "https://playwright.dev",@@ -28,6 +28,6 @@"install": "node install.js"},"dependencies": {- "playwright-core": "1.25.0-next"+ "playwright-core": "1.26.0-next"}}