playwright

officialscriptablebrowser automation
$ npm i -D @playwright/test
Summary

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

  • playwright fits browser well, especially for browser testing, automation, and headless scripts from the terminal.
  • It is the official CLI from Microsoft.
  • Easy to automate.
  • Good fit for coding-agent workflows and repeatable scripts.
  • Output is mostly text-first, so verify results before scripting around it.
browser-playwright-SKILL.md

Playwright guide

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

Open CLI packages the install path, verify step, and safe-start workflow so this tool can move from “interesting CLI” to something you can actually use. It also integrates with skills.sh so each CLI comes with the right companion skills, not just a binary and a docs link.

When to apply

  • browser testing, automation, and headless scripts from the terminal.
  • You need browser automation in both local dev and CI.
  • You need browser testing.
  • You need automation.
  • You need headless scripts.

Quick reference

Installnpm i -D @playwright/test
Verifyplaywright --help
First real commandnpx playwright test

Open CLI × skills.sh

Open CLI integrates playwright with the right skills.sh companions so you get the tool and the workflow together.

Playwright CLI

Verified pairing

Open CLI integrates playwright with this skills.sh skill because it is the clearest fit for how playwright is usually used. Practical browser automation and test flows built around Playwright.

View on skills.sh
$ npx skills add https://github.com/microsoft/playwright-cli --skill playwright-cli
Starter prompt

Use playwright together with the Playwright CLI skills.sh skill. Explore the app step by step, describe what you observe, and only then generate or run broader automation.

Why this tool

  • playwright fits browser well, especially for browser testing, automation, and headless scripts from the terminal.
  • It is the official CLI from Microsoft.
  • Easy to automate.

Watch-outs

  • Output is mostly plain text.

Example workflow

1. npx playwright test

Safe start

Step 1

Install playwright.

Step 2

Run `playwright --help` first.

Step 3

Start with `npx playwright test`.

Step 4

Install the browser or scraping CLI and any required browser dependencies.

Alternatives worth considering