AGENT SKILL

webapp-testing

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.

License 许可
Apache-2.0
最近更新
2026-03-20
Stars
★ 2
Forks
0

01 前言 Front Matter

name
webapp-testing
tools
[ "file_read", "file_write", "shell" ]
author
Anthropic
models
[ "qwen3-coder", "qwen3-32b" ]
license
Apache 2.0
version
1.0.0
triggers
[ "test webapp", "Playwright", "browser testing", "frontend testing", "web application test" ]
description
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.

03 SKILL.md 正文

WebApp Testing

Decision Tree

User task → Is it static HTML?
    ├─ Yes → Read HTML directly
    └─ No → Is server running?
        ├─ No → Start server
        └─ Yes → Reconnaissance → Test

Playwright Example

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch(headless=True)
    page = browser.new_page()
    page.goto('http://localhost:3000')
    page.wait_for_load_state('networkidle')
    
    # Take screenshot
    page.screenshot(path='inspect.png')
    
    # Find elements
    buttons = page.locator('button').all()
    
    browser.close()

Reconnaissance-Then-Action

  1. Navigate and wait for networkidle
  2. Take screenshot or inspect DOM
  3. Identify selectors
  4. Execute actions

Important Notes

Missing Scripts: scripts/with_server.py and examples/ directory not included. Use Playwright directly as shown above.

Qwen Code Integration

Use /skills webapp-testing to invoke.

04 同仓库更多 Skills