# Playwright V1

> Ad-hoc Playwright browser automation (scripts in /tmp). Use when testing a URL in a visible browser. App E2E belongs in the consuming repo's E2E dirs — see project rules (e.g. e2e-playwright.mdc).

- Skill: `blockmatic/playwright-v1` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add blockmatic/playwright-v1`
- Raw SKILL.md: https://api.skillmd.com/api/skills/blockmatic/playwright-v1/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: blockmatic (https://skillmd.com/u/blockmatic)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/blockmatic/playwright-v1

---


# Playwright (ad-hoc)

Not for app E2E. Those live in the consuming app's E2E test directories.

## Run

1. Detect localhost: `node lib/helpers.js` from this skill dir, or ask for a URL.
2. Write a script to `/tmp/playwright-test-*.js` (never into the repo).
3. Visible browser unless the user asks for headless: `chromium.launch({ headless: false })`.
4. Execute: `node run.js /tmp/playwright-test-*.js` from this skill directory.

First time: `npm run setup` in this skill directory (installs Playwright + Chromium).

