# Webapp testing

> Webapp testing is an open-source agent skill for developer tools. Lets your agent write and run Playwright scripts to test local web apps in a browser. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/anthropics/skills/tree/main/skills/webapp-testing
- **Repository:** https://github.com/anthropics/skills
- **GitHub stars:** 202,820
- **Skill name:** webapp-testing
- **Collection:** https://github.com/anthropics/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-30

## About

This skill guides an agent through testing local web applications with native Python Playwright scripts. It covers verifying frontend behavior, inspecting rendered DOM and selectors, taking screenshots and reading browser console logs.

The workflow starts by choosing an approach: static HTML can be read directly for selectors, while dynamic apps are handled by checking whether the server is already running. For dynamic apps the agent waits for network idle, inspects the page, then acts on discovered selectors. Scripts run headless Chromium and close the browser when finished.

A bundled helper, with_server.py, starts one or more development servers before a test script runs and manages their lifecycle. The agent is told to read its --help output first rather than its source. Examples cover element discovery, file:// URLs for local HTML and console logging. Python and Playwright must be available, and a local app to test is required.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/anthropics/skills/tree/HEAD/skills/webapp-testing)
- [Network calls found in its scripts](https://github.com/anthropics/skills/tree/HEAD/skills/webapp-testing)
- [No license found](https://github.com/anthropics/skills/tree/HEAD/skills/webapp-testing)

## Features

- **Playwright test scripts:** Guidance for writing synchronous Python Playwright automation against local pages.
- **Server lifecycle helper:** A bundled script that starts one or more servers before running a test script.
- **Reconnaissance workflow:** Steps to inspect rendered DOM and screenshots before choosing selectors.
- **Screenshots and console logs:** Capturing page screenshots and browser console output during automation.
- **Static versus dynamic decision:** A decision path for static HTML files versus JavaScript-driven apps.
- **Reference examples:** Example scripts for element discovery, local HTML and console logging.

## Good for

- Check that a login form submits and shows the right message
- Take screenshots of a local dev server page for visual review
- Debug a button that does nothing by reading browser console logs
- Run a frontend test against a backend and frontend started together

## Install

### Claude Code

This skill ships in the `example-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add anthropics/skills
/plugin install example-skills@anthropic-agent-skills
```

Or copy only this skill to `~/.claude/skills/webapp-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/anthropics/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/webapp-testing &&
cp -R "$tmp/skills/webapp-testing" ~/.claude/skills/webapp-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/webapp-testing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/webapp-testing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/anthropics/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/webapp-testing &&
cp -R "$tmp/skills/webapp-testing" ~/.agents/skills/webapp-testing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/webapp-testing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/webapp-testing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/anthropics/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/webapp-testing &&
cp -R "$tmp/skills/webapp-testing" ~/.cursor/skills/webapp-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/webapp-testing` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/anthropics/skills.git --path skills/webapp-testing
```

Or copy the folder to `~/.gemini/skills/webapp-testing` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/webapp-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/anthropics/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/webapp-testing &&
cp -R "$tmp/skills/webapp-testing" ~/.copilot/skills/webapp-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/webapp-testing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/anthropics/skills.git
```

Then copy `skills/skills/webapp-testing` into your agent's skills folder as `webapp-testing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Webapp testing need to run?

Python and Playwright. The helper script with_server.py starts the servers your app needs, and the skill assumes a local web application to test.

### Does Webapp testing test remote websites?

The skill is written for local web applications, using localhost URLs or local HTML files.

### Does the agent read the helper script source?

No. The instructions tell the agent to run the script with --help first and use it as a black box unless a customized solution is clearly needed.

### How do I install Webapp testing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/webapp-testing to use it in all your projects, or to .claude/skills/webapp-testing in one project. Or install the example-skills plugin, which includes it: /plugin marketplace add anthropics/skills, then /plugin install example-skills@anthropic-agent-skills.

### Does Webapp testing run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Webapp testing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Webapp testing?

The closest alternatives to Webapp testing are Webapp testing, Playwright skill, Playwright generate test, Playwright and Playwright interactive.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Webapp testing](https://ai-powered.com/skills/webapp-testing-github): Webapp testing is an open-source agent skill for browser automation.
- [Playwright skill](https://ai-powered.com/skills/playwright-skill): Playwright skill is an open-source agent skill for browser automation.
- [Playwright generate test](https://ai-powered.com/skills/playwright-generate-test): Playwright generate test is an open-source agent skill for browser automation.
- [Playwright](https://ai-powered.com/skills/playwright): Playwright is a free agent skill for browser automation.
- [Playwright interactive](https://ai-powered.com/skills/playwright-interactive): Playwright interactive is a free agent skill for browser automation.
- [Playwright explore website](https://ai-powered.com/skills/playwright-explore-website): Playwright explore website is an open-source agent skill for browser automation.
- [Azure microsoft playwright testing ts](https://ai-powered.com/skills/azure-microsoft-playwright-testing-ts): Azure microsoft playwright testing ts is an open-source agent skill for browser automation.
- [UI screenshots](https://ai-powered.com/skills/ui-screenshots): UI screenshots is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/webapp-testing
