Technical & DevelopmentAdvanced
webapp-testing
Interact with and test web applications using Playwright.
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/anthropics/skills --skill webapp-testingnpx skills add https://github.com/anthropics/skills --skill webapp-testingOr paste this URL into your assistant to install:
Overview
What This Skill Does
Automates end-to-end user interface testing and behavior validation for web applications. It runs headless browser checks, handles page interactions, and asserts layout correctness.
Application
When to use this Skill
- Validating form submissions, clicks, and page redirection logic
- Testing responsive layouts across multiple screen viewport sizes
- Writing automated regression tests for critical user flows
- Diagnosing console errors, loading latency, and API mismatches
- Ensuring frontend components function correctly before releases
Documentation
Show Skills.md file
Web Application Testing
To test local web applications, write native Python Playwright scripts.
Helper Scripts Available:
scripts/with_server.py- Manages server lifecycle (supports multiple servers)
Always run scripts with --help first to see usage. DO NOT read the source until you try running the script first and find that a customized solution is abslutely necessary. These scripts can be very large and thus pollute your context window. They exist to be called directly as black-box scripts rather than ingested into your context window.
Decision Tree: Choosing Your Approach
User task → Is it static HTML?
├─ Yes → Read HTML file directly to identify selectors
│ ├─ Success → Write Playwright script using selectors
│ └─ Fails/Incomplete → Treat as dynamic (below)
│
└─ No (dynamic webapp) → Is the server already running?
├─ No → Run: python scripts/with_server.py --help
│ Then use the helper + write simplified Playwright script
│
└─ Yes → Reconnaissance-then-action:
1. Navigate and wait for networkidle
2. Take screenshot or inspect DOM
3. Identify selectors from rendered state
4. Execute actions with discovered selectors
Lines 1 - 27 of 90
Recommendations