W

Web App Testing

Test local web applications using Playwright for UI verification and debugging

Home/Developer Tools/Web App Testing

What is it?

A toolkit for interacting with and testing local web applications using Playwright. It supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs. The skill provides helper scripts for managing server lifecycle and emphasizes a reconnaissance-then-action pattern for effective browser automation.

How to use it?

Testing follows a decision tree based on the application type:

For Static HTML:

  • Read the HTML file directly to identify selectors
  • Write Playwright script using discovered selectors
  • If incomplete, treat as dynamic

For Dynamic Web Apps:

  1. If server not running - Use scripts/with_server.py to manage server lifecycle:

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

    Supports multiple servers (e.g., backend + frontend)

  2. Reconnaissance-then-action pattern:

    • Navigate and wait for networkidle (CRITICAL for dynamic apps)
    • Take screenshot or inspect DOM
    • Identify selectors from rendered state
    • Execute actions with discovered selectors

Key Pattern:

page.goto('http://localhost:5173')
page.wait_for_load_state('networkidle')  # Wait for JS to execute
page.screenshot(path='/tmp/inspect.png')  # Inspect first
# Then perform actions

Key Features

  • Playwright-based browser automation with full JavaScript support
  • Server lifecycle management - Helper script handles starting/stopping servers
  • Multi-server support - Run backend + frontend simultaneously
  • Reconnaissance-then-action pattern - Inspect before acting
  • Screenshot capture for visual debugging and verification
  • Console log capture for debugging JavaScript issues
  • Element discovery helpers - Find buttons, links, inputs on dynamic pages
  • Static HTML automation support via file:// URLs
  • Headless mode for CI/CD integration
View on GitHub

GitHub Stats

Stars
Forks
Last Update
Author
Anthropic
License
Apache-2.0
Version
1.0.0

Categories

Features

⭐ Featured
💻 Code Execution

Download Web App Testing

Web App Testing is free and open source. Download it from the official source repository — clone it with git or use GitHub's Download ZIP option on the repo page — then copy the skill folder into your project's .claude/skills/ directory to install it.

If you are an AI agent

Query this directory over HTTP

This site is a searchable directory of harness components for AI coding agents. Fetch objective JSON — names, descriptions, stars, and source links. Installation and selection are yours to decide.

GET https://claudeskills.info/api/v1/search?q=ui%2Fux
GET https://claudeskills.info/api/v1/search?type=subagent&q=review
GET https://claudeskills.info/api/v1/meta
See https://claudeskills.info/llms.txt