Webapp testing

From vibeinging/YiYi · View interactive version

Webapp testing is an AI agent skill from the GitHub repository vibeinging/YiYi. 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.

How to use this skill

Skill file

Web Application Testing

To test local web applications, write native Python Playwright scripts.

Helper Scripts

Always run scripts with --help first.

Decision Tree

User task → Is it static HTML?
    ├─ Yes → Read HTML file directly, write Playwright script
    └─ No (dynamic webapp) → Is the server already running?
        ├─ No → Use scripts/with_server.py helper
        └─ Yes → Reconnaissance-then-action pattern

Example: Using with_server.py

python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_automation.py

Reconnaissance-Then-Action Pattern

  1. Navigate and wait for networkidle
  2. Take screenshot or inspect DOM
  3. Identify selectors from rendered state
  4. Execute actions with discovered selectors

Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.