webapp-testing
仓库创建 2025年9月22日最近提交 3 天前SkillHot 收录 21 天前
▸ 精选理由
适合自动化前端功能验证与 UI 调试,配套脚本实用。
▸ 风险提示
运行脚本会在本地执行并可能访问网络或启动浏览器进程。
这个 Skill 做什么
用 Playwright 在本地驱动并测试 Web 应用,捕获截图与日志。
用 Playwright 在本地驱动并测试 Web 应用,能跑端到端脚本、复现交互问题、抓浏览器截图并收集日志,方便定位前端 bug。适合做功能验证、UI 回归和调试复杂交互流程。配有 helper 脚本(比如 with_server.py)来管理本地服务器,建议先用 --help 看用法并先跑脚本再读源码。
▸ 展开 SKILL.md 英文原文
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
16.4w
Stars
2.0w
Forks
18
仓库内 Skill
+5.6k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/anthropics/skills/main/skills/webapp-testing/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/anthropics/skills/main/skills/webapp-testing/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# 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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有