<< All versions
Skill v1.0.1
LLM-judged scan90/100steelmorgan/1c-agent-based-dev-framework/playwright
+7 new
──Details
PublishedJune 21, 2026 at 10:53 AM
Content Hashsha256:aa0f7d3f1bb6358b...
Git SHAf0ac1fdfcab1
Bump Typepatch
──Files
Files (1 file, 2.2 KB)
SKILL.md2.2 KBactive
SKILL.md · 91 lines · 2.2 KB
version: "1.0.1" name: "playwright" description: "Use for автоматизации браузера из терминала (навигация, заполнение форм, снимки, скриншоты, извлечение данных, отладка UI-потоков) через playwright-cli. Helps запустить сценарий без интерактивного IDE."
Playwright CLI Skill
CLI-first browser automation. Do not pivot to @playwright/test unless explicitly asked.
Prerequisite check
bash
command -v npx >/dev/null 2>&1
If missing, ask user to install Node.js/npm first.
Skill path (set once)
bash
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"export PWCLI="$CODEX_HOME/skills/playwright/scripts/playwright_cli.sh"
Quick start
bash
"$PWCLI" open https://playwright.dev --headed"$PWCLI" snapshot"$PWCLI" click e15"$PWCLI" type "Playwright""$PWCLI" press Enter"$PWCLI" screenshot
Core workflow
openthe page.snapshotto get stable element refs.- Interact using refs from the latest snapshot.
- Re-snapshot after navigation or significant DOM changes.
- Capture artifacts (screenshot, pdf, traces) when useful.
Re-snapshot after: navigation, UI-changing clicks, modals, tab switches, or stale-ref errors.
Recommended patterns
Form fill and submit
bash
"$PWCLI" open https://example.com/form"$PWCLI" snapshot"$PWCLI" fill e1 "user@example.com""$PWCLI" fill e2 "password123""$PWCLI" click e3"$PWCLI" snapshot
Debug a UI flow with traces
bash
"$PWCLI" open https://example.com --headed"$PWCLI" tracing-start# ...interactions..."$PWCLI" tracing-stop
Multi-tab work
bash
"$PWCLI" tab-new https://example.com"$PWCLI" tab-list"$PWCLI" tab-select 0"$PWCLI" snapshot
References
- CLI command reference:
references/cli.md - Workflows and troubleshooting:
references/workflows.md
Guardrails
- Always snapshot before referencing element ids like
e12. - Re-snapshot when refs seem stale.
- Prefer explicit commands over
evalandrun-code. - Use
--headedwhen a visual check will help. - Artifacts go to
output/playwright/. - Default to CLI commands, not Playwright test specs.