Back to list
VitorAndTxr

playwright

by VitorAndTxr

0🍴 0📅 Jan 19, 2026

SKILL.md


name: playwright description: Browser automation scripts for testing, screenshots, and web interaction. 16 scripts with persistent state.

Playwright Skill

Browser automation with persistent state between commands.

Setup

cd .claude/skills/playwright/scripts
npm install && npm run install-browsers

Scripts

All in .claude/skills/playwright/scripts/:

Navigation: navigate.js <url>, go-back.js, go-forward.js

Discovery: snapshot.js - Get element refs (run first)

Interaction: click.js <ref>, hover.js <ref>, type.js <text> [ref], select-option.js <ref> <value>, press-key.js <key>

Forms: fill-form.js <json>

Wait: wait.js <ms>, wait-for.js <selector> [timeout]

Capture: screenshot.js [file] [--full], pdf-save.js [file]

Utility: evaluate.js <script>, close.js, generate-test.js [name]

Basic Workflow

node navigate.js "http://localhost:5173"
node snapshot.js          # Get refs: ref1, ref2...
node click.js ref1        # Use refs from snapshot
node type.js "text" ref2
node screenshot.js "out.png"
node close.js             # Always close when done

Key Concepts

Refs: snapshot.js returns [ref=ref1] markers. Use these in subsequent commands. Refs expire on page changes - run snapshot again.

State: Browser stays open between commands. close.js clears state.

Output: All scripts return JSON: {"success": true, "data": {...}}

References

Limitations

  • Single browser instance at a time
  • Refs expire on DOM changes
  • Browser opens visually (not headless)

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon