[Home](/index.md) › [Tools](/tools.md) › Playwright

# Playwright

Cross-browser E2E testing

Website: [https://playwright.dev/](https://parible.co/go/playwright?link=website&from=markdown)

![Playwright homepage](https://ohtvsdyfknahbwffwdqi.supabase.co/storage/v1/object/public/tool-screenshots/e2f70000-04f8-477d-9f78-1422a8716d48/1795180395930-1800.webp)

## Overview

Playwright is a web automation framework from Microsoft for [end-to-end testing](/categories/monitoring-testing.md), scripting and AI agent workflows. One API controls Chromium, Firefox and WebKit on Linux, macOS and Windows, in headless or headed mode. It's available for TypeScript, Python, .NET and Java. It also emulates mobile Chrome on Android and Mobile Safari.

The Playwright Test runner waits for elements to be ready before acting and retries assertions until they pass. Each test runs in a fresh browser context, so tests stay isolated from each other. For AI coding agents, Playwright offers an MCP server and a CLI that let agents control a browser through accessibility snapshots instead of screenshots.

### Categories

- [End-to-End Testing](/categories/monitoring-testing/end-to-end-testing.md)

## Features

- Cross-browser testing
- Parallel test execution
- Test recorder
- AI test generation
- Data Export
- Visual regression testing
- Self-healing tests
- No-code test authoring
- Auto-waiting
- CI/CD integration
- Real device testing
- Native mobile app testing

[View all features](/tools/playwright/features.md)

## Use Playwright with AI agents

### Local MCP

Playwright has an MCP server available to run locally. Use Playwright MCP server to give your agent access.

```sh
claude mcp add playwright npx @playwright/mcp@latest
```

[Read the MCP docs](https://playwright.dev/mcp/installation)

### CLI

Playwright has CLI tools available so your agent can run commands in the terminal. Install the CLI using the command below.

```sh
npm install -g @playwright/cli@latest
```

[Read the CLI docs](https://playwright.dev/docs/getting-started-cli)

## Alternatives to Playwright

- [WebdriverIO](/tools/webdriverio.md): Open-source test automation
- [TestCafe](/tools/testcafe.md): End-to-end testing framework
- [QA Wolf](/tools/qa-wolf.md): AI end-to-end testing
- [testRigor](/tools/testrigor.md): Agentic test automation
- [mabl](/tools/mabl.md): Agentic testing platform
- [Rainforest QA](/tools/rainforest-qa.md): No-code AI test automation

[View all alternatives](/tools/playwright/alternatives.md)

## Frequently asked questions

### Does Playwright have an MCP server?

Yes, Playwright has a local MCP server, so AI agents can work with it directly. See the [AI agents section](#ai-agents) for how to connect it.

### Does Playwright have AI features?

Yes, Playwright has AI features, including AI test generation. See the [full feature list](/tools/playwright/features.md) for everything Playwright offers.

### What are the alternatives to Playwright?

Popular alternatives to Playwright include [WebdriverIO](/tools/webdriverio.md), [TestCafe](/tools/testcafe.md), [QA Wolf](/tools/qa-wolf.md), [testRigor](/tools/testrigor.md), [mabl](/tools/mabl.md), and [Rainforest QA](/tools/rainforest-qa.md). To find more alternatives to Playwright, view our [full list of alternatives](/tools/playwright/alternatives.md).
