playwright

officialpopularbrowser automationnpm

Microsoft · Browser testing, automation, and headless scripts from the terminal.

$ npm i -D @playwright/test
One-liner to try
$ npx playwright test

Agent pack

Copy into an agent

A markdown-ready setup brief with install, verify, safe starting commands, and guardrails for AI agents.

Open .mdJSON
Readiness
Usable with guardrails · 50/100
Verify
playwright --version
Agent URL
/cli/playwright/agent.md

Quick reference

Install
npm i -D @playwright/test
Verify
playwright --version
First command
npx playwright test
Machine JSON
/cli/playwright.json

About

The official CLI from Microsoft. Browser testing, automation, and headless scripts from the terminal.

Example workflow

1. npx playwright test

Alternatives worth considering