playwright

Installation
Summary

Terminal-driven browser automation with element snapshots and interactive UI workflows.

  • Operates via playwright-cli wrapper script (requires npx); supports headless and headed modes for visual debugging
  • Core workflow: open page, snapshot for stable element references, interact using refs, re-snapshot after navigation or DOM changes
  • Includes form filling, clicking, typing, multi-tab management, screenshot/PDF capture, and trace recording for flow debugging
  • Element refs (e.g., e3, e15) remain valid only until the next significant DOM change; re-snapshot when refs go stale
SKILL.md

Playwright CLI Skill

Drive a real browser from the terminal using playwright-cli. Prefer the bundled wrapper script so the CLI works even when it is not globally installed. Treat this skill as CLI-first automation. Do not pivot to @playwright/test unless the user explicitly asks for test files.

Prerequisite check (required)

Before proposing commands, check whether npx is available (the wrapper depends on it):

command -v npx >/dev/null 2>&1

If it is not available, pause and ask the user to install Node.js/npm (which provides npx). Provide these steps verbatim:

# Verify Node/npm are installed
node --version
Related skills

More from openai/skills

Installs
2.4K
Repository
openai/skills
GitHub Stars
18.9K
First Seen
Feb 1, 2026