playwright-cli
Browser Automation with playwright-cli
Validated against the installed playwright-cli binary on this machine (0.0.62).
Treat the installed CLI help and live runtime behavior as the primary authority.
Prefer this skill's documented + tested workflow over copied snippets from older skills.
How playwright-cli actually works
playwright-cli gives you a browser session controlled through terminal commands.
The key object model is:
- pages/tabs you navigate and inspect,
- refs like
e5fromsnapshot, - artifact files from
snapshot --filename,screenshot,console, andnetwork.
Snapshots are not magical live DOM handles. They are point-in-time accessibility-tree dumps.
Saved snapshots are markdown-style outline files in the current .playwright-cli/ artifact area.
Bootstrap (run once before browser work)
More from yigitkonur/skills-by-yigitkonur
run-research
Use skill if you are answering one technical research question with current web evidence, Reddit practitioner experience, and source-backed synthesis, optionally fanned out across parallel subagents.
42run-agent-browser
Use skill if you are driving the agent-browser CLI for ad hoc browser automation — @ref snapshots, sessions, forms, extraction, screenshots, headed/stealth, or provider runs.
38publish-npm-package
Use skill if you are publishing to npm via GitHub Actions release workflow with trusted publishing, NPM_TOKEN, provenance, semantic-release, changesets, release-please, or fixing npm publish CI.
35init-agent-config
Use skill if you are creating, auditing, or migrating CLAUDE.md, AGENTS.md, or REVIEW.md instruction files, folder-scoped agent guidance, or cross-agent companion entrypoints.
34build-mcp-use-server
Use skill if you are building TypeScript MCP servers with mcp-use/server — server.tool, response helpers, ctx.auth, sessions, transports, widgets, Inspector, deploy.
34build-skills
Use skill if you are creating or substantially revising a Claude skill and need workspace-first evidence, remote comparison, and repo-fit synthesis before writing SKILL.md.
32