| [ Web Proxy ] |
| Viewing: https://playwright.dev/python | [Back] [Original] |
One API to drive Chromium, Firefox, and WebKit in your tests, your scripts, and your agent workflows. Available for TypeScript, Python, .NET, and Java.
Full-featured test runner with auto-waiting, assertions, tracing, and parallelism across Chromium, Firefox, and WebKit.
npm init playwright@latestToken-efficient browser automation for coding agents like Claude Code and GitHub Copilot. Skill-based workflows without large context overhead.
npm i -g @playwright/cli@latestModel Context Protocol server that gives AI agents full browser control through structured accessibility snapshots.
npx @playwright/mcp@latestPlaywright waits for elements to be actionable before performing actions. Assertions automatically retry until conditions are met. No artificial timeouts, no flaky tests.
Each test gets a fresh browser context equivalent to a brand new browser profile. Full isolation with near-zero overhead. Save authentication state once and reuse it across tests.
Find elements with selectors that mirror how users see the page: getByRole, getByLabel, getByPlaceholder, getByTestId. No brittle CSS paths.
Tests run in parallel by default across all configured browsers. Shard across multiple machines for faster CI. Full cross-browser coverage on every commit.
Agents interact with pages through structured accessibility trees element roles, names, and refs. Deterministic and unambiguous, no vision models required.
Drop-in Model Context Protocol server for VS Code, Cursor, Claude Desktop, Windsurf, and any MCP client. Full browser control through standard tool calls.
Token-efficient command-line interface with installable skills. Purpose-built for Claude Code, GitHub Copilot, and similar coding agents that need to balance browser automation with large codebases.
Visual dashboard with live screencast previews of all running browser sessions. Click any session to zoom in and take control.
Record your actions in the browser and Playwright writes the test code. Generate assertions from the recording toolbar. Pick locators by clicking on elements.
Full timeline of test execution with DOM snapshots, network requests, console logs, and screenshots at every step. Investigate failures without re-running.
Run, debug, and generate tests directly in the editor. Set breakpoints, live-inspect locators in the browser, and view full execution traces in the sidebar.
| Web Proxy Viewer | New URL | Original Page |