playwriter

📁 samhvw8/dotfiles 📅 3 days ago
3
总安装量
3
周安装量
#55510
全站排名
安装命令
npx skills add https://github.com/samhvw8/dotfiles --skill playwriter

Agent 安装分布

gemini-cli 3
antigravity 3
claude-code 3
github-copilot 3
codex 3
kimi-cli 3

Skill 文档

Quick Start

# Get a session ID first
playwriter session new
# => 1

# Execute code with your session
playwriter -s 1 -e "await page.goto('https://example.com')"
playwriter -s 1 -e "console.log(await accessibilitySnapshot({ page }))"
playwriter -s 1 -e "await page.screenshot({ path: 'shot.png', scale: 'css' })"

If playwriter is not found, use npx playwriter@latest or bunx playwriter@latest.

Full Documentation

Always run playwriter skill to get the complete, up-to-date skill instructions.

The skill command outputs detailed docs on:

  • Session management
  • Context variables (state, page, context)
  • Best practices and rules
  • Accessibility snapshots and screenshots
  • Selector strategies
  • Working with pages, navigation, popups, downloads
  • Utility functions (getCleanHTML, getCDPSession, createDebugger, etc.)
  • Network interception for API scraping
  • And more…
playwriter skill