Language:JapaneseEnglish

webapp-testing Claude Code Skill

Author
Anthropic
Topics
Code Quality, Review & Testing · Web & App Development
License
See LICENSE.txt
First cataloged
2026-07-09 (UTC)
Explanation last updated
2026-10-09 (UTC)
Source (GitHub) last updated
2026-04-20 (UTC) (178 days ago)

The explanation below is AI-generated. Please verify it against the sources.

This is a Claude skill that provides guidance and helper scripts for testing local web applications with Playwright. It instructs the assistant to write native Python Playwright scripts rather than relying on a built-in testing framework, and includes a helper script for starting and managing one or more local servers during test runs. The skill distinguishes between static HTML pages (where selectors can be found by reading the file directly) and dynamic web apps (where the assistant should wait for the page to finish loading before inspecting the DOM and choosing selectors). It also covers capturing full-page screenshots, inspecting rendered page content, and reading browser console logs. Example scripts are provided for common patterns such as element discovery, static HTML automation, and console log capture.

What you can do with webapp-testing

  • Write and run Python Playwright scripts to automate and test a locally running web application
  • Use a bundled helper script to start and manage one or more local servers (e.g. backend and frontend) before running tests
  • Follow a decision process for choosing between reading static HTML directly or performing live reconnaissance on dynamic pages
  • Wait for the page to finish loading before capturing screenshots or inspecting the DOM for selectors
  • Take full-page screenshots and inspect rendered HTML content to discover buttons, links, and inputs
  • Capture browser console logs during automated test runs

Sources

Back to list