Agent skill

playwright-cli-archived

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

Stars 2
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/arisng/github-copilot-fc/tree/main/skills/.archived/playwright-cli-archived

SKILL.md

Browser Automation with playwright-cli

Quick start

bash
playwright-cli --config profiles/chromium.json open https://example.com
playwright-cli snapshot
playwright-cli click e3
playwright-cli fill e5 "user@example.com"
playwright-cli press Enter

Note on Blazor apps: For Interactive Server render mode, Playwright auto-waits for the SignalR circuit. The next command after an interaction (like click) will wait for the server to process. See BLAZOR_TESTING.md for timing strategies.

Path Resolution

All file paths referenced in this skill (including profiles, references, and scripts) are resolved relative to the skill's root directory at runtime. This ensures portability when the skill is published to different locations such as:

  • Windows: %USERPROFILE%\.copilot\skills\playwright-cli
  • Windows: %USERPROFILE%\.claude\skills\playwright-cli
  • Windows: %USERPROFILE%\.codex\skills\playwright-cli
  • WSL: ~/.copilot/skills/playwright-cli (if WSL is available)
  • WSL: ~/.claude/skills/playwright-cli (if WSL is available)
  • WSL: ~/.codex/skills/playwright-cli (if WSL is available)

The playwright-cli tool automatically resolves relative paths based on its execution context, maintaining compatibility across publishing destinations.

Core workflow

  1. Navigate: playwright-cli --config profiles/chromium.json open https://example.com
  2. Interact: Use element references from the snapshot (e.g., e3, e5)
  3. Inspect: Re-snapshot after significant changes to see the DOM
  4. Always profile-first: Use explicit profiles from profiles/ (default: chromium.json)
  5. Mobile-first testing: Start with device profiles (iphone15, pixel7) for responsive validation

For conventional folder structure to manage artifacts (screenshots, logs, scripts, .playwright-cli), see FOLDER_STRUCTURE.md.

When to use

  • POC/Exploratory: Manual testing, debugging, form filling, data extraction
  • Production: Use E2E scripts instead (Playwright Test Framework)
  • Hybrid: Explore with CLI, then convert to scripts for automation. Use this approach when you need repeatable E2E validations with automated CLI execution but manual verification is acceptable—ideal for prototyping, quick validations, or scenarios where full test framework setup is overkill but some automation is required (e.g., <30 min tasks, solo development, or pre-CI checks). Transition to production scripts if repeatability exceeds 3 runs or requires programmatic assertions. See HYBRID_TEMPLATE.md for a reusable bash script example.

For detailed decision guidance, see BOUNDARIES.md.

Command reference

All Playwright CLI commands organized by type:

  • COMMANDS.md - Core, navigation, keyboard, mouse, save, tabs, DevTools
  • CONFIGURATION.md - Profiles, HTTPS/SSL, sessions, config manager script
  • WORKFLOWS.md - Form submission, multi-tab, debugging, responsive testing examples
  • BLAZOR_TESTING.md - Blazor Interactive Server with SignalR, readiness signals, best practices

E2E scripts & integration

Playwright CLI complements code-based E2E test scripts. When to integrate:

  • Exploratory Testing: Use CLI for manual flows before scripting
  • Debugging Failures: Reproduce script issues interactively
  • Prototyping: Quick validations or data setup
  • CI/CD: Pre-checks or parallel sessions alongside suites

See INTEGRATION.md for 10 solid workflows, best practices, and hybrid approach patterns.

Glossary & boundaries

  • GLOSSARY.md - Domain terminology (assertions, E2E, flaky tests, etc.)
  • BOUNDARIES.md - POC vs Production decision matrix and rules

Expand your agent's capabilities with these related and highly-rated skills.

arisng/github-copilot-fc

openspec-propose

Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.

2 0
Explore
arisng/github-copilot-fc

openspec-archive-change

Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.

2 0
Explore
arisng/github-copilot-fc

openspec-explore

Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.

2 0
Explore
arisng/github-copilot-fc

openspec-apply-change

Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.

2 0
Explore
arisng/github-copilot-fc

fleet

Multi-iteration parallel subagent orchestrator for Kimi Code CLI with streamlined observability, automated documentation, and atomic commits. Use when orchestrating complex work across multiple subagents, enabling parallel execution, or when explicitly requesting fleet mode with '/flow:fleet'. Integrates diataxis documentation and git-atomic-commit workflow.

2 0
Explore
arisng/github-copilot-fc

github-pages-deploy

Deploy a static HTML file or static site directory to GitHub Pages. Use when the user wants a durable GitHub-hosted URL for a static page, diagram, report, or generated site, and can provide GitHub authentication via GITHUB_TOKEN or GH_TOKEN.

2 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results