playwright

Automate browser navigation, form filling, and artifact capture via Playwright CLI.

Updated Nov 8, 2025
One-click install
npx skills add https://github.com/10knamesmore/dotfiles --skill playwright-10knamesmore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/10knamesmore/dotfiles/tree/main/general/skills/playwright
Command: npx skills add https://github.com/10knamesmore/dotfiles --skill playwright-10knamesmore

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @playwright/mcp, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill enables users to automate a real browser from the terminal using Playwright CLI.

Core Features & Use Cases

  • CLI-first automation with playwright-cli or the bundled wrapper script to run browser actions from the command line.
  • Snapshot-based workflows to stabilize element references and capture consistent results across navigations.
  • Multi-tab and form-interaction workflows with artifact capture (screenshots, traces) for debugging and validation.

Quick Start

export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}" export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh" Use the wrapper script to drive a browser: "$PWCLI" open https://playwright.dev --headed "$PWCLI" snapshot "$PWCLI" click e15 "$PWCLI" type "Playwright" "$PWCLI" press Enter "$PWCLI" screenshot

Frequently Asked Questions about playwright

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate browser actions from the terminal?

Automate browser actions from the terminal by executing Playwright CLI commands through a bundled wrapper script, enabling navigation, form filling, and artifact capture directly from the command line.

Do I need Playwright globally installed to run browser automation scripts?

Playwright does not need to be globally installed because the skill provides a bundled wrapper script that executes the playwright-cli even without a global installation on your system.

What is the best way to capture screenshots and traces during browser automation?

The best way to capture screenshots and traces during browser automation is to use snapshot-based workflows via the Playwright CLI, which stabilizes element references and captures artifacts for debugging.

Can I interact with multiple tabs and fill forms using Playwright CLI?

Yes, you can interact with multiple tabs and fill forms using Playwright CLI, which supports multi-tab workflows, form interactions, and artifact capture across single and multi-tab sessions.

What are the requirements to run Playwright browser automation from the command line?

To run Playwright browser automation from the command line, you need Node.js and npm installed to provide npx, which the wrapper script uses to execute the playwright-cli commands.