agentusecases.aiAll 2,316 use cases
Software & DevOps

Write Playwright tests with Playwright MCP and Claude Code

A walkthrough of using Playwright MCP with Claude Code to generate Playwright tests in minutes. · Oct 5, 2026

Done withCCClaude Code

What they did
The Playwright MCP server is registered with Claude Code, loaded with a saved logged-in session through storage state. A three-part prompt carries the environment facts, a plain-English scenario, and standing rules. The agent explores the live app through the accessibility tree, writes the test, runs it, and fixes failures itself. A person reviews the code and the scenario's meaning.
How it went
The agent produced a runnable test with locators read from the live page. It also fixed a strict-mode locator error on its own. It struggles with long flows, changing data, deep conditionals, and OAuth. The source gives no timing numbers.
Worth knowing
Add .auth/ to .gitignore before committing, because this setup saves the session outside Playwright's default ignored path, and run the test with --repeat-each 5 to check for flakiness.

Try it yourself with Claude Code

Set up Playwright MCP in this project, then open [app URL] and explore the flow for [user journey, e.g. sign up and checkout]. Write Playwright tests that cover it using stable locators, and run them until they pass. Finish by showing me the test files and the passing run output.

Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.

Read the original ↗

Source: DEV · Oct 5, 2026

Related use cases

  • CC

    Turn tickets into merged pull requests

    Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.

    Claude CodeCodex

  • CC

    Run marketing operations with a team of subagents

    A CMO agent reads the weekly plan and spawns specialist subagents like a social media marketer and performance reviewer; the social agent double-posted to Reddit in week one.

    Claude Code

  • CC

    Send daily WhatsApp reminders of what to pack for school

    A commenter built a Claude Code tool that sends a WhatsApp reminder the day before about what to pack in a child's school bag.

    Claude Code

  • CL

    Build a C compiler with a team of parallel agents

    Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.

    Claude

  • RA

    Build a Pokemon-style dog collecting app

    A user had Replit Agent build a catch-em-all dog app whose rarity comes from scraped American Kennel Club regional population data.

    Replit Agent

  • CX

    Build a local knowledge app for agent outputs with Codex

    The author built Mianotes using four Codex agents across 30+ sessions to centralize scattered files agents produced, and the agents documented the product inside it.

    Codex

Keep browsing

All 334 Claude Code use casesAll 433 Software & DevOps use cases

Get 5 like this every morning

The best things people got an AI agent to do, each with the prompt to try it.

All use casesAgentsTopicsJobsNewRSSAboutContactSponsorPrivacy
Sponsors
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us