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
docs: add intros for all pages (#27480)
Debbie O'Brien3773f004db0f
diff --git a/docs/src/accessibility-testing-java.md b/docs/src/accessibility-testing-java.mdindex 402ecca096..a14064452c 100644--- a/docs/src/accessibility-testing-java.md+++ b/docs/src/accessibility-testing-java.md@@ -3,6 +3,8 @@ id: accessibility-testingtitle: "Accessibility testing"---+## Introduction+Playwright can be used to test your application for many types of accessibility issues.A few examples of problems this can catch include:diff --git a/docs/src/accessibility-testing-js.md b/docs/src/accessibility-testing-js.mdindex f31cf79af8..d367662545 100644--- a/docs/src/accessibility-testing-js.md+++ b/docs/src/accessibility-testing-js.md@@ -3,6 +3,8 @@ id: accessibility-testingtitle: "Accessibility testing"---+## Introduction+Playwright can be used to test your application for many types of accessibility issues.A few examples of problems this can catch include:diff --git a/docs/src/actionability.md b/docs/src/actionability.mdindex d41141de28..a9484ba053 100644--- a/docs/src/actionability.md+++ b/docs/src/actionability.md@@ -3,6 +3,8 @@ id: actionabilitytitle: "Auto-waiting"---+## Introduction+Playwright performs a range of actionability checks on the elements before making actions to ensure these actionsbehave as expected. It auto-waits for all the relevant checks to pass and only then performs the requested action. If the required checks do not pass within the given `timeout`, action fails with the `TimeoutError`.diff --git a/docs/src/api-testing-csharp.md b/docs/src/api-testing-csharp.mdindex 35954d9656..f68a733322 100644--- a/docs/src/api-testing-csharp.md+++ b/docs/src/api-testing-csharp.md@@ -3,6 +3,8 @@ id: api-testingtitle: "API testing"---+## Introduction+Playwright can be used to get access to the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API ofyour application.diff --git a/docs/src/api-testing-java.md b/docs/src/api-testing-java.mdindex 792fa11e58..80faa968d4 100644--- a/docs/src/api-testing-java.md+++ b/docs/src/api-testing-java.md@@ -3,6 +3,8 @@ id: api-testingtitle: "API testing"---+## Introduction+Playwright can be used to get access to the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API ofyour application.diff --git a/docs/src/api-testing-js.md b/docs/src/api-testing-js.mdindex c8f56c24fa..341a14e0e6 100644--- a/docs/src/api-testing-js.md+++ b/docs/src/api-testing-js.md@@ -3,6 +3,8 @@ id: api-testingtitle: "API testing"---+## Introduction+Playwright can be used to get access to the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API ofyour application.diff --git a/docs/src/api-testing-python.md b/docs/src/api-testing-python.mdindex d6a69ddaf4..9930605a52 100644--- a/docs/src/api-testing-python.md+++ b/docs/src/api-testing-python.md@@ -3,6 +3,8 @@ id: api-testingtitle: "API testing"---+## Introduction+Playwright can be used to get access to the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API ofyour application.diff --git a/docs/src/auth.md b/docs/src/auth.mdindex fb3251ec72..6bfbf146d4 100644--- a/docs/src/auth.md+++ b/docs/src/auth.md@@ -3,6 +3,8 @@ id: authtitle: "Authentication"---+## Introduction+Playwright executes tests in isolated environments called [browser contexts](./browser-contexts.md). This isolation model improves reproducibility and prevents cascading test failures. Tests can load existing authenticated state. This eliminates the need to authenticate in every test and speeds up test execution.## Core conceptsdiff --git a/docs/src/best-practices-js.md b/docs/src/best-practices-js.mdindex 7b1a93fa3b..02e43786e0 100644--- a/docs/src/best-practices-js.md+++ b/docs/src/best-practices-js.md@@ -3,6 +3,7 @@ id: best-practicestitle: "Best Practices"---+## IntroductionThis guide should help you to make sure you are following our best practices and writing tests that are more resilient.diff --git a/docs/src/browser-contexts.md b/docs/src/browser-contexts.mdindex e958eb128e..c65f73e068 100644--- a/docs/src/browser-contexts.md+++ b/docs/src/browser-contexts.md@@ -3,6 +3,8 @@ id: browser-contextstitle: "Isolation"---+## Introduction+Tests written with Playwright execute in isolated clean-slate environments called browser contexts. This isolation model improves reproducibility and prevents cascading test failures.## What is Test Isolation?diff --git a/docs/src/browsers.md b/docs/src/browsers.mdindex 526fce5f06..12df8d88a9 100644--- a/docs/src/browsers.md+++ b/docs/src/browsers.md@@ -3,6 +3,8 @@ id: browserstitle: "Browsers"---+## Introduction+Each version of Playwright needs specific versions of browser binaries to operate. You will need to use the Playwright CLI to install these browsers.With every release, Playwright updates the versions of the browsers it supports, so that the latest Playwright would support the latest browsers at any moment. It means that every time you update Playwright, you might need to re-run the `install` CLI command.diff --git a/docs/src/canary-releases-js.md b/docs/src/canary-releases-js.mdindex d08958f5c2..1c22353c36 100644--- a/docs/src/canary-releases-js.md+++ b/docs/src/canary-releases-js.md@@ -3,6 +3,8 @@ id: canary-releasestitle: "Canary releases"---+## Introduction+Playwright for Node.js has a canary releases system.It permits you to **test new unreleased features** instead of waiting for a full release. They get released daily on the `next` NPM tag of Playwright.diff --git a/docs/src/chrome-extensions-js-python.md b/docs/src/chrome-extensions-js-python.mdindex e6c1bdb173..fe15a06819 100644--- a/docs/src/chrome-extensions-js-python.md+++ b/docs/src/chrome-extensions-js-python.md@@ -3,6 +3,8 @@ id: chrome-extensionstitle: "Chrome extensions"---+## Introduction+:::noteExtensions only work in Chrome / Chromium launched with a persistent context.:::diff --git a/docs/src/ci.md b/docs/src/ci.mdindex d54ee8a091..639d1cfb4d 100644--- a/docs/src/ci.md+++ b/docs/src/ci.md@@ -2,12 +2,11 @@id: cititle: "Continuous Integration"---+## IntroductionPlaywright tests can be executed in CI environments. We have created sampleconfigurations for common CI providers.-## Introduction-3 steps to get your tests running on CI:1. **Ensure CI agent can run browsers**: Use [our Docker image](./docker.md)diff --git a/docs/src/codegen.md b/docs/src/codegen.mdindex 3f1667047e..20fd37050f 100644--- a/docs/src/codegen.md+++ b/docs/src/codegen.md@@ -5,6 +5,7 @@ title: "Test generator"import LiteYouTube from '@site/src/components/LiteYouTube';+## IntroductionPlaywright comes with the ability to generate tests for you as you perform actions in the browser and is a great way to quickly get started with testing. Playwright will look at your page and figure out the best locator, prioritizing [role, text and test id locators](./locators.md). If the generator finds multiple elements matching the locator, it will improve the locator to make it resilient that uniquely identify the target element.diff --git a/docs/src/dialogs.md b/docs/src/dialogs.mdindex eb285bb965..c210ffdb3c 100644--- a/docs/src/dialogs.md+++ b/docs/src/dialogs.md@@ -3,6 +3,8 @@ id: dialogstitle: "Dialogs"---+## Introduction+Playwright can interact with the web page dialogs such as [`alert`](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert), [`confirm`](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm), [`prompt`](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt) as well as [`beforeunload`](https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event) confirmation.## alert(), confirm(), prompt() dialogsdiff --git a/docs/src/docker.md b/docs/src/docker.mdindex d0111580bd..de3627f21b 100644--- a/docs/src/docker.md+++ b/docs/src/docker.md@@ -3,9 +3,9 @@ id: dockertitle: "Docker"----[Dockerfile.jammy] can be used to run Playwright scripts in Docker environment. These image includes all the dependencies needed to run browsers in a Docker container, and also include the browsers themselves.+## Introduction-<!-- TOC -->+[Dockerfile.jammy] can be used to run Playwright scripts in Docker environment. These image includes all the dependencies needed to run browsers in a Docker container, and also include the browsers themselves.## Usagediff --git a/docs/src/downloads.md b/docs/src/downloads.mdindex 12c9a142c0..9bce4f9d98 100644--- a/docs/src/downloads.md+++ b/docs/src/downloads.md@@ -3,7 +3,7 @@ id: downloadstitle: "Downloads"----+## IntroductionFor every attachment downloaded by the page, [`event: Page.download`] event is emitted. All these attachments are downloaded into a temporary folder. You can obtain the download url, file name and payload stream using the [Download] object from the event.diff --git a/docs/src/emulation.md b/docs/src/emulation.mdindex a673659661..65c81612f8 100644--- a/docs/src/emulation.md+++ b/docs/src/emulation.md@@ -3,6 +3,8 @@ id: emulationtitle: "Emulation"---+## Introduction+With Playwright you can test your app on any browser as well as emulate a real device such as a mobile phone or tablet. Simply configure the devices you would like to emulate and Playwright will simulate the browser behavior such as `"userAgent"`, `"screenSize"`, `"viewport"` and if it `"hasTouch"` enabled. You can also emulate the `"geolocation"`, `"locale"` and `"timezone"` for all tests or for a specific test as well as set the `"permissions"` to show notifications or change the `"colorScheme"`.## Devicesdiff --git a/docs/src/evaluating.md b/docs/src/evaluating.mdindex 7a815534f5..65f8c4a646 100644--- a/docs/src/evaluating.md+++ b/docs/src/evaluating.md@@ -3,6 +3,8 @@ id: evaluatingtitle: "Evaluating JavaScript"---+## Introduction+Playwright scripts run in your Playwright environment. Your page scripts run in the browser page environment. Those environments don't intersect, they are running in different virtual machines in different processes and even potentially on different computers.The [`method: Page.evaluate`] API can run a JavaScript function in the contextdiff --git a/docs/src/events.md b/docs/src/events.mdindex a15ebcf300..900cde1a95 100644--- a/docs/src/events.md+++ b/docs/src/events.md@@ -3,6 +3,8 @@ id: eventstitle: "Events"---+## Introduction+Playwright allows listening to various types of events happening on the web page, such as network requests, creation of child pages, dedicated workers etc. There are several ways to subscribe to such events such as waiting for events or adding or removing event listeners.## Waiting for eventdiff --git a/docs/src/extensibility.md b/docs/src/extensibility.mdindex cb5b9170ce..1dec0b3d3e 100644--- a/docs/src/extensibility.md+++ b/docs/src/extensibility.md@@ -2,9 +2,6 @@id: extensibilitytitle: "Extensibility"-----<!-- TOC -->-## Custom selector enginesPlaywright supports custom selector engines, registered with [`method: Selectors.register`].diff --git a/docs/src/frames.md b/docs/src/frames.mdindex 1a67f24bd8..64f1b5aea8 100644--- a/docs/src/frames.md+++ b/docs/src/frames.md@@ -3,6 +3,8 @@ id: framestitle: "Frames"---+## Introduction+A [Page] can have one or more [Frame] objects attached to it. Each page has a main frame and page-level interactions(like `click`) are assumed to operate in the main frame.diff --git a/docs/src/getting-started-vscode-js.md b/docs/src/getting-started-vscode-js.mdindex 91be2814bd..004db2228f 100644--- a/docs/src/getting-started-vscode-js.md+++ b/docs/src/getting-started-vscode-js.md@@ -5,6 +5,8 @@ title: "Getting started - VS Code"import LiteYouTube from '@site/src/components/LiteYouTube';+## Introduction+Playwright Test was created specifically to accommodate the needs of end-to-end testing. Playwright supports all modern rendering engines including Chromium, WebKit, and Firefox. Test on Windows, Linux, and macOS, locally or on CI, headless or headed with native mobile emulation of Google Chrome for Android and Mobile Safari.Get started by installing Playwright and generating a test to see it in action. Alternatively you can also get started and run your tests using the [CLI](./intro.md).diff --git a/docs/src/handles.md b/docs/src/handles.mdindex 5b42e33b5c..0707891936 100644--- a/docs/src/handles.md+++ b/docs/src/handles.md@@ -3,6 +3,8 @@ id: handlestitle: "Handles"---+## Introduction+Playwright can create handles to the page DOM elements or any other objects inside thepage. These handles live in the Playwright process, whereas the actual objects livein the browser. There are two types of handles:diff --git a/docs/src/input.md b/docs/src/input.mdindex ec1e6e6239..1569dbd31d 100644--- a/docs/src/input.md+++ b/docs/src/input.md@@ -3,6 +3,8 @@ id: inputtitle: "Actions"---+## Introduction+Playwright can interact with HTML Input elements such as text inputs, checkboxes, radio buttons, select options, mouse clicks, type characters, keys and shortcuts as well as upload files and focus elements.## Text inputdiff --git a/docs/src/intro-csharp.md b/docs/src/intro-csharp.mdindex f91ee55597..a76fc3b78d 100644--- a/docs/src/intro-csharp.md+++ b/docs/src/intro-csharp.md@@ -3,6 +3,8 @@ id: introtitle: "Installation"---+## Introduction+Playwright was created specifically to accommodate the needs of end-to-end testing. Playwright supports all modern rendering engines including Chromium, WebKit, and Firefox. Test on Windows, Linux, and macOS, locally or on CI, headless or headed with native mobile emulation.You can choose to use [NUnit base classes](./test-runners.md#nunit) or [MSTest base classes](./test-runners.md#mstest) that Playwright provides to write end-to-end tests. These classes support running tests on multiple browser engines, parallelizing tests, adjusting launch/context options and getting a [Page]/[BrowserContext] instance per test out of the box. Alternatively you can use the [library](./library.md) to manually write the testing infrastructure.diff --git a/docs/src/intro-java.md b/docs/src/intro-java.mdindex fa6c5b6c60..e28a950ead 100644--- a/docs/src/intro-java.md+++ b/docs/src/intro-java.md@@ -3,6 +3,8 @@ id: introtitle: "Installation"---+## Introduction+Playwright was created specifically to accommodate the needs of end-to-end testing. Playwright supports all modern rendering engines including Chromium, WebKit, and Firefox. Test on Windows, Linux, and macOS, locally or on CI, headless or headed with native mobile emulation.Playwright is distributed as a set of [Maven](https://maven.apache.org/what-is-maven.html) modules. The easiest way to use it is to add one dependency to your project's `pom.xml` as described below. If you're not familiar with Maven please refer to its [documentation](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html).diff --git a/docs/src/languages.md b/docs/src/languages.mdindex 89f500544a..a84167fe97 100644--- a/docs/src/languages.md+++ b/docs/src/languages.md@@ -3,6 +3,8 @@ id: languagestitle: "Supported languages"---+## Introduction+Playwright is available in multiple languages that share the same underlying implementation. All core features for automating the browser are supported in all languages, while testing ecosystem integration is different. Pick the language based on your experience, familiarity with its testing ecosystem and your project constraints. For the best experience pick the test runner that we recommend for each language.## JavaScript and TypeScriptdiff --git a/docs/src/library-csharp.md b/docs/src/library-csharp.mdindex 625d49804e..1abda291ff 100644--- a/docs/src/library-csharp.md+++ b/docs/src/library-csharp.md@@ -3,6 +3,8 @@ id: librarytitle: "Getting started - Library"---+## Introduction+Playwright can either be used with the [NUnit](./test-runners.md#nunit) or [MSTest](./test-runners.md#mstest), or as a Playwright Library (this guide). If you are working on an application that utilizes Playwright capabilities or you are using Playwright with another test runner, read on.## Usagediff --git a/docs/src/library-js.md b/docs/src/library-js.mdindex 29ace98ba3..ae3d1916ec 100644--- a/docs/src/library-js.md+++ b/docs/src/library-js.md@@ -3,6 +3,8 @@ id: librarytitle: "Library"---+## Introduction+Playwright Library provides unified APIs for launching and interacting with browsers, while Playwright Test provides all this plus a fully managed end-to-end Test Runner and experience.Under most circumstances, for end-to-end testing, you'll want to use `@playwright/test` (Playwright Test), and not `playwright` (Playwright Library) directly. To get started with Playwright Test, follow the [Getting Started Guide](./intro.md).diff --git a/docs/src/locators.md b/docs/src/locators.mdindex 05b5301309..bbecedfd1f 100644--- a/docs/src/locators.md+++ b/docs/src/locators.md@@ -3,6 +3,8 @@ id: locatorstitle: "Locators"---+## Introduction+[Locator]s are the central piece of Playwright's auto-waiting and retry-ability. In a nutshell, locators representa way to find element(s) on the page at any moment.diff --git a/docs/src/mock-browser-js.md b/docs/src/mock-browser-js.mdindex fd5af23aa5..26f76f6363 100644--- a/docs/src/mock-browser-js.md+++ b/docs/src/mock-browser-js.md@@ -3,6 +3,8 @@ id: mock-browser-apistitle: "Mock browser APIs"---+## Introduction+Playwright provides native support for most of the browser features. However, there are some experimental APIsand APIs which are not (yet) fully supported by all browsers. Playwright usually doesn't provide dedicatedautomation APIs in such cases. You can use mocks to test the behavior of your application in such cases. This guide gives a few examples.diff --git a/docs/src/navigations.md b/docs/src/navigations.mdindex c18babb647..44bab9187a 100644--- a/docs/src/navigations.md+++ b/docs/src/navigations.md@@ -3,6 +3,8 @@ id: navigationstitle: "Navigations"---+## Introduction+Playwright can navigate to URLs and handle navigations caused by the page interactions.## Basic navigationdiff --git a/docs/src/other-locators.md b/docs/src/other-locators.mdindex 08a8fea70d..665dcce2c5 100644--- a/docs/src/other-locators.md+++ b/docs/src/other-locators.md@@ -3,6 +3,8 @@ id: other-locatorstitle: "Other locators"---+## Introduction+:::noteCheck out the main [locators guide](./locators) for most common and recommended locators.:::diff --git a/docs/src/pages.md b/docs/src/pages.mdindex 7a6c702056..2e0197075c 100644--- a/docs/src/pages.md+++ b/docs/src/pages.md@@ -3,8 +3,6 @@ id: pagestitle: "Pages"----<!-- TOC -->-## PagesEach [BrowserContext] can have multiple pages. A [Page] refers to a single tab or a popup window within a browserdiff --git a/docs/src/pom.md b/docs/src/pom.mdindex 15a647cc67..983598a2c2 100644--- a/docs/src/pom.md+++ b/docs/src/pom.md@@ -2,6 +2,9 @@id: pomtitle: "Page object models"---++## Introduction+Large test suites can be structured to optimize ease of authoring and maintenance. Page object models are one such approach to structure your test suite.A page object represents a part of your web application. An e-commerce web application might have a home page, a listings page and a checkout page. Each of them can be represented by page object models.diff --git a/docs/src/protractor-js.md b/docs/src/protractor-js.mdindex 723974ff4d..279d796b99 100644--- a/docs/src/protractor-js.md+++ b/docs/src/protractor-js.md@@ -3,8 +3,6 @@ id: protractortitle: "Migrating from Protractor"----<!-- TOC -->-## Migration Principles- No need for "webdriver-manager" / Selenium.diff --git a/docs/src/puppeteer-js.md b/docs/src/puppeteer-js.mdindex 7b31c2d0cd..3c3f5d5c99 100644--- a/docs/src/puppeteer-js.md+++ b/docs/src/puppeteer-js.md@@ -3,8 +3,6 @@ id: puppeteertitle: "Migrating from Puppeteer"----<!-- TOC -->-## Migration PrinciplesThis guide describes migration to [Playwright Library](./library) and [Playwright Test](./intro.md) from Puppeteer. The APIs have similarities, but Playwright offers much more possibilities for web testing and cross-browser automation.diff --git a/docs/src/running-tests-csharp.md b/docs/src/running-tests-csharp.mdindex 3b954ec3dc..14e26386d7 100644--- a/docs/src/running-tests-csharp.md+++ b/docs/src/running-tests-csharp.md@@ -3,6 +3,8 @@ id: running-teststitle: "Running and debugging tests"---+## Introduction+You can run a single test, a set of tests or all tests. Tests can be run on different browsers. By default tests are run in a headless manner meaning no browser window will be opened while running the tests and results will be seen in the terminal. If you prefer you can run your tests in headed mode by using the `headless` test run parameter.- Running all testsdiff --git a/docs/src/running-tests-java.md b/docs/src/running-tests-java.mdindex b1b8a5c81c..1cacca7710 100644--- a/docs/src/running-tests-java.md+++ b/docs/src/running-tests-java.md@@ -3,6 +3,8 @@ id: running-teststitle: "Running and debugging tests"---+## Introduction+Playwright tests can be run in a variety of ways. We recommend hooking it up to your favorite test runner, e.g. [JUnit](./test-runners.md) since it gives you the ability to run tests in parallel, run single test, etc.You can run a single test, a set of tests or all tests. Tests can be run on one browser or multiple browsers. By default tests are run in a headless manner meaning no browser window will be opened while running the tests and results will be seen in the terminal. If you prefer you can run your tests in headed mode by using the `launch(new BrowserType.LaunchOptions().setHeadless(false))` option.diff --git a/docs/src/screenshots.md b/docs/src/screenshots.mdindex bbc9b5c2e2..8044e6aad9 100644--- a/docs/src/screenshots.md+++ b/docs/src/screenshots.md@@ -3,6 +3,8 @@ id: screenshotstitle: "Screenshots"---+## Introduction+Here is a quick way to capture a screenshot and save it into a file:```jsdiff --git a/docs/src/selenium-grid.md b/docs/src/selenium-grid.mdindex 41138d66ce..c7b4a1b4d3 100644--- a/docs/src/selenium-grid.md+++ b/docs/src/selenium-grid.md@@ -3,6 +3,8 @@ id: selenium-gridtitle: "Selenium Grid"---+## Introduction+Playwright can connect to [Selenium Grid Hub](https://www.selenium.dev/documentation/grid/) that runs Selenium 4 to launch **Google Chrome** or **Microsoft Edge** browser, instead of running browser on the local machine.:::warningdiff --git a/docs/src/service-workers-experimental-network-events-js.md b/docs/src/service-workers-experimental-network-events-js.mdindex 049c64640a..96b8ead1e5 100644--- a/docs/src/service-workers-experimental-network-events-js.md+++ b/docs/src/service-workers-experimental-network-events-js.md@@ -3,6 +3,8 @@ id: service-workers-experimentaltitle: "(Experimental) Service Worker Network Events"---+## Introduction+:::warningIf you're looking to do general network mocking, routing, and interception, please see the [Network Guide](./network.md) first. Playwright provides built-in APIs for this use case that don't require the information below. However, if you're interested in requests made by Service Workers themselves, please read below.:::diff --git a/docs/src/test-annotations-js.md b/docs/src/test-annotations-js.mdindex a11cd60fa5..ba8ae9c681 100644--- a/docs/src/test-annotations-js.md+++ b/docs/src/test-annotations-js.md@@ -3,6 +3,8 @@ id: test-annotationstitle: "Annotations"---+## Introduction+Playwright Test supports test annotations to deal with failures, flakiness, skip, focus and tag tests:- [`method: Test.skip#1`] marks the test as irrelevant. Playwright Test does not run such a test. Use this annotation when the test is not applicable in some configuration.- [`method: Test.fail#1`] marks the test as failing. Playwright Test will run this test and ensure it does indeed fail. If the test does not fail, Playwright Test will complain.diff --git a/docs/src/test-assertions-js.md b/docs/src/test-assertions-js.mdindex 28a4f38ff9..cb357ac056 100644--- a/docs/src/test-assertions-js.md+++ b/docs/src/test-assertions-js.md@@ -3,6 +3,8 @@ id: test-assertionstitle: "Assertions"---+## Introduction+Playwright includes test assertions in the form of `expect` function. To make an assertion, call `expect(value)` and choose a matcher that reflects the expectation. There are many [generic matchers](./api/class-genericassertions.md) like `toEqual`, `toContain`, `toBeTruthy` that can be used to assert any conditions.```jsdiff --git a/docs/src/test-cli-js.md b/docs/src/test-cli-js.mdindex 35803f985f..56013e4f49 100644--- a/docs/src/test-cli-js.md+++ b/docs/src/test-cli-js.md@@ -3,6 +3,8 @@ id: test-clititle: "Command line"---+## Introduction+Here are the most common options available in the command line.- Run all the testsdiff --git a/docs/src/test-components-js.md b/docs/src/test-components-js.mdindex c7a591c2b5..2d9d115bd6 100644--- a/docs/src/test-components-js.md+++ b/docs/src/test-components-js.md@@ -5,6 +5,8 @@ title: "Components (experimental)"import LiteYouTube from '@site/src/components/LiteYouTube';+## Introduction+Playwright Test can now test your components.<LiteYouTubediff --git a/docs/src/test-configuration-js.md b/docs/src/test-configuration-js.mdindex e617915816..0d1f839d39 100644--- a/docs/src/test-configuration-js.md+++ b/docs/src/test-configuration-js.md@@ -3,6 +3,8 @@ id: test-configurationtitle: "Test configuration"---+## Introduction+Playwright has many options to configure how your tests are run. You can specify these options in the configuration file. Note that test runner options are **top-level**, do not put them into the `use` section.## Basic Configurationdiff --git a/docs/src/test-fixtures-js.md b/docs/src/test-fixtures-js.mdindex d6b0f822e6..ff721c7261 100644--- a/docs/src/test-fixtures-js.md+++ b/docs/src/test-fixtures-js.md@@ -3,6 +3,8 @@ id: test-fixturestitle: "Fixtures"---+## Introduction+Playwright Test is based on the concept of test fixtures. Test fixtures are used to establish environment for each test, giving the test everything it needs and nothing else. Test fixtures are isolated between tests. With fixtures, you can group tests based on their meaning, instead of their common setup.### Built-in fixturesdiff --git a/docs/src/test-parallel-js.md b/docs/src/test-parallel-js.mdindex d4fc4f67b8..56397c7d3d 100644--- a/docs/src/test-parallel-js.md+++ b/docs/src/test-parallel-js.md@@ -3,6 +3,8 @@ id: test-paralleltitle: "Parallelism"---+## Introduction+Playwright Test runs tests in parallel. In order to achieve that, it runs several worker processes that run at the same time. By default, **test files** are run in parallel. Tests in a single file are run in order, in the same worker process.- You can configure tests using [`test.describe.configure`](#parallelize-tests-in-a-single-file) to run **tests in a single file** in parallel.diff --git a/docs/src/test-parameterize-js.md b/docs/src/test-parameterize-js.mdindex 2cb64ce9a9..19111d4eea 100644--- a/docs/src/test-parameterize-js.md+++ b/docs/src/test-parameterize-js.md@@ -2,6 +2,7 @@id: test-parameterizetitle: "Parameterize tests"---+## IntroductionYou can either parameterize tests on a test level or on a project level.diff --git a/docs/src/test-projects-js.md b/docs/src/test-projects-js.mdindex fd551400c7..88b1ec0161 100644--- a/docs/src/test-projects-js.md+++ b/docs/src/test-projects-js.md@@ -3,6 +3,8 @@ id: test-projectstitle: "Projects"---+## Introduction+A project is logical group of tests running with the same configuration. We use projects so we can run tests on different browsers and devices. Projects are configured in the `playwright.config.ts` file and once configured you can then run your tests on all projects or only on a specific project. You can also use projects to run the same tests in different configurations. For example, you can run the same tests in a logged-in and logged-out state.By setting up projects you can also run a group of tests with different timeouts or retries or a group of tests against different environments such as staging and production, splitting tests per package/functionality and more.diff --git a/docs/src/test-reporters-js.md b/docs/src/test-reporters-js.mdindex 8d8b7e3d69..4add6e6170 100644--- a/docs/src/test-reporters-js.md+++ b/docs/src/test-reporters-js.md@@ -3,6 +3,8 @@ id: test-reporterstitle: "Reporters"---+## Introduction+Playwright Test comes with a few built-in reporters for different needs and ability to provide custom reporters. The easiest way to try out built-in reporters is to pass `--reporter` [command line option](./test-cli.md).diff --git a/docs/src/test-retries-js.md b/docs/src/test-retries-js.mdindex 13bdabf938..0deca7544c 100644--- a/docs/src/test-retries-js.md+++ b/docs/src/test-retries-js.md@@ -3,6 +3,8 @@ id: test-retriestitle: "Retries"---+## Introduction+Test retries are a way to automatically re-run a test when it fails. This is useful when a test is flaky and fails intermittently. Test retries are configured in the [configuration file](./test-configuration.md).## Failuresdiff --git a/docs/src/test-runners-csharp.md b/docs/src/test-runners-csharp.mdindex 71722f498d..83d6bc58b0 100644--- a/docs/src/test-runners-csharp.md+++ b/docs/src/test-runners-csharp.md@@ -3,6 +3,8 @@ id: test-runnerstitle: "Test Runners"---+## Introduction+While Playwright for .NET isn't tied to a particular test runner or testing framework, in our experienceit works best with the built-in .NET test runner, and using NUnit as the test framework. NUnit isalso what we use internally for [our tests](https://github.com/microsoft/playwright-dotnet/tree/main/src/Playwright.Tests).diff --git a/docs/src/test-runners-java.md b/docs/src/test-runners-java.mdindex 7a411cd5f5..f9c808b5b7 100644--- a/docs/src/test-runners-java.md+++ b/docs/src/test-runners-java.md@@ -3,6 +3,8 @@ id: test-runnerstitle: "Test Runners"---+## Introduction+With a few lines of code, you can hook up Playwright to your favorite Java test runner.Playwright and Browser instances can be reused between tests for better performance. Wediff --git a/docs/src/test-runners-python.md b/docs/src/test-runners-python.mdindex e3cd41cdf8..f6679f1790 100644--- a/docs/src/test-runners-python.md+++ b/docs/src/test-runners-python.md@@ -3,6 +3,8 @@ id: test-runnerstitle: "Pytest Plugin Reference"---+## Introduction+Playwright provides a [Pytest](https://docs.pytest.org/en/stable/) plugin to write end-to-end tests. To get started with it, refer to the [getting started guide](./intro.md).## Usagediff --git a/docs/src/test-sharding-js.md b/docs/src/test-sharding-js.mdindex 7d3b897d0a..2f6438966c 100644--- a/docs/src/test-sharding-js.md+++ b/docs/src/test-sharding-js.md@@ -3,6 +3,8 @@ id: test-shardingtitle: "Sharding"---+## Introduction+By default, Playwright runs tests in [parallel](/test-parallel.md) and strives for optimal utilization of CPU cores on your machine. In order to achieve even greater parallelisation, you can further scale Playwright test execution by running tests on multiple machines simultaneously. We call this mode of operation "sharding".## Sharding tests between multiple machinesdiff --git a/docs/src/test-snapshots-js.md b/docs/src/test-snapshots-js.mdindex bbbdb16991..83f309b929 100644--- a/docs/src/test-snapshots-js.md+++ b/docs/src/test-snapshots-js.md@@ -3,6 +3,8 @@ id: test-snapshotstitle: "Visual comparisons"---+## Introduction+Playwright Test includes the ability to produce and visually compare screenshots using `await expect(page).toHaveScreenshot()`. On first execution, Playwright test will generate reference screenshots. Subsequent runs will compare against the reference.```js title="example.spec.ts"diff --git a/docs/src/test-timeouts-js.md b/docs/src/test-timeouts-js.mdindex f2a1dbcea9..94d2d8a85c 100644--- a/docs/src/test-timeouts-js.md+++ b/docs/src/test-timeouts-js.md@@ -3,6 +3,8 @@ id: test-timeoutstitle: "Timeouts"---+## Introduction+Playwright Test has multiple configurable timeouts for various tasks.|Timeout |Default |Description |diff --git a/docs/src/test-typescript-js.md b/docs/src/test-typescript-js.mdindex 6062954a43..465f2c2d93 100644--- a/docs/src/test-typescript-js.md+++ b/docs/src/test-typescript-js.md@@ -3,6 +3,8 @@ id: test-typescripttitle: "TypeScript"---+## Introduction+Playwright supports TypeScript out of the box. You just write tests in TypeScript, and Playwright will read them, transform to JavaScript and run.## tsconfig.jsondiff --git a/docs/src/test-use-options-js.md b/docs/src/test-use-options-js.mdindex 0202ba776d..c8c93c7cee 100644--- a/docs/src/test-use-options-js.md+++ b/docs/src/test-use-options-js.md@@ -3,6 +3,8 @@ id: test-use-optionstitle: "Test use options"---+## Introduction+In addition to configuring the test runner you can also configure [Emulation](#emulation-options), [Network](#network-options) and [Recording](#recording-options) for the [Browser] or [BrowserContext]. These options are passed to the `use: {}` object in the Playwright config.### Basic Optionsdiff --git a/docs/src/test-webserver-js.md b/docs/src/test-webserver-js.mdindex 20ffe81a3d..4e88b7a288 100644--- a/docs/src/test-webserver-js.md+++ b/docs/src/test-webserver-js.md@@ -3,6 +3,8 @@ id: test-webservertitle: "Web server"---+## Introduction+Playwright comes with a `webserver` option in the config file which gives you the ability to launch a local dev server before running your tests. This is ideal for when writing your tests during development and when you don't have a staging or production url to test against.## Configuring a web serverdiff --git a/docs/src/testing-library-js.md b/docs/src/testing-library-js.mdindex 7748209bfd..0026d39eef 100644--- a/docs/src/testing-library-js.md+++ b/docs/src/testing-library-js.md@@ -3,8 +3,6 @@ id: testing-librarytitle: "Migrating from Testing Library"----<!-- TOC -->-## Migration principlesThis guide describes migration to Playwright's [Experimental Component Testing](./test-components) from [DOM Testing Library](https://testing-library.com/docs/dom-testing-library/intro/), [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/), [Vue Testing Library](https://testing-library.com/docs/vue-testing-library/intro) and [Svelte Testing Library](https://testing-library.com/docs/svelte-testing-library/intro).diff --git a/docs/src/threading-java.md b/docs/src/threading-java.mdindex b492cc3dd1..350388c00b 100644--- a/docs/src/threading-java.md+++ b/docs/src/threading-java.md@@ -3,6 +3,8 @@ id: multithreadingtitle: "Multithreading"---+## Introduction+Playwright Java is not thread safe, i.e. all its methods as well as methods on all objects created by it (such as [BrowserContext], [Browser], [Page] etc.) are expected to be called on the same thread where the Playwright object was created or proper synchronization should be implemented to ensure only one thread calls Playwright methods at any given time. Having said that it's okay to create multiple Playwright instances each on its own thread.Here is an example where three playwright instances are created each on its own thread. Each instance launches its own browser process and runs the test against it.@@ -76,4 +78,4 @@ page.navigate("https://playwright.dev");System.out.println("-- did navigate --");// Block current thread for 60s and ensure the events are dispatched.page.waitForTimeout(60_000);-```\ No newline at end of file+```diff --git a/docs/src/videos.md b/docs/src/videos.mdindex 0bc7d1500c..60f740cf8b 100644--- a/docs/src/videos.md+++ b/docs/src/videos.md@@ -3,6 +3,8 @@ id: videostitle: "Videos"---+## Introduction+With Playwright you can record videos for your tests.## Record videodiff --git a/docs/src/webview2.md b/docs/src/webview2.mdindex d17c17a867..b5db56ac36 100644--- a/docs/src/webview2.md+++ b/docs/src/webview2.md@@ -3,6 +3,8 @@ id: webview2title: "WebView2"---+## Introduction+The following will explain how to use Playwright with [Microsoft Edge WebView2](https://docs.microsoft.com/en-us/microsoft-edge/webview2/). WebView2 is a WinForms control, which will use Microsoft Edge under the hood to render web content. It is a part of the Microsoft Edge browser and is available on Windows 10 and Windows 11. Playwright can be used to automate WebView2 applications and can be used to test web content in WebView2. For connecting to WebView2, Playwright uses [`method: BrowserType.connectOverCDP`] which connects to it via the Chrome DevTools Protocol (CDP).## Overviewdiff --git a/docs/src/writing-tests-csharp.md b/docs/src/writing-tests-csharp.mdindex 3818b9f039..ca3a1b41ab 100644--- a/docs/src/writing-tests-csharp.md+++ b/docs/src/writing-tests-csharp.md@@ -3,6 +3,8 @@ id: writing-teststitle: "Writing tests"---+## Introduction+Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met. Playwright comes with [auto-wait](./actionability.md) built in meaning it waits for elements to be actionable prior to performing actions. Playwright provides the [Expect](./test-assertions) function to write assertions.Take a look at the example test below to see how to write a test using using [locators](/locators.md) and web first assertions.diff --git a/docs/src/writing-tests-java.md b/docs/src/writing-tests-java.mdindex c6e10731fa..7a05aca292 100644--- a/docs/src/writing-tests-java.md+++ b/docs/src/writing-tests-java.md@@ -3,6 +3,8 @@ id: writing-teststitle: "Writing tests"---+## Introduction+Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met. Playwright comes with [auto-wait](./actionability.md) built in meaning it waits for elements to be actionable prior to performing actions. Playwright provides [assertThat](./test-assertions.md) overloads to write assertions.Take a look at the example test below to see how to write a test using web first assertions, locators and selectors.