Playwright enables reliable web automation for testing, scripting, and AI agents. One API to drive Chromium, Firefox, and WebKit in your tests, your scripts, and your agent workflows. Available for.

The playwright.config centralizes configuration: target browsers, timeouts, retries, projects, reporters and more. In existing projects dependencies are added to your current package.json.

Playwright module provides a method to launch a browser instance. The following is a typical example of using Playwright to drive automation:

Understanding the Context

Writing tests Introduction Playwright tests are simple: they perform actions and assert the state against expectations. Playwright automatically waits for actionability checks to pass before performing each.

VS Code Introduction The Playwright VS Code extension brings the power of Playwright Test directly into your editor, allowing you to run, debug, and generate tests with a seamless UI-driven.

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..

Playwright Test Agents Introduction Playwright comes with three Playwright Test Agents out of the box: planner, generator and healer. These agents can be used independently, sequentially, or as the.

Key Insights

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 generator Introduction Playwright 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.

Locators Introduction Locator s are the central piece of Playwright's auto-waiting and retry-ability. In a nutshell, locators represent a way to find element (s) on the page at any moment. Quick Guide.