Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>playwright AI AgentNew to Visual Studio Code? Get it now.
playwright AI Agent

playwright AI Agent

Bhudeb

|
8 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Playwright Agent 🎭

A VS Code extension that automatically generates Playwright test scripts using Claude Opus AI. Simply provide a URL, describe your goal, and let the agent do the rest.

Features

  • 🧠 AI-powered test generation using Claude Opus
  • 🔍 Automatically snapshots the target page via Playwright's Aria observer
  • 📝 Generates clean, ready-to-run .spec.js test files
  • 📂 Opens the generated file directly in your editor

Requirements

  • Node.js 18+
  • A valid Anthropic API key
  • Playwright installed in your project (npm install @playwright/test)

Usage

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac)
  2. Run: Generate Playwright Test
  3. Enter the URL you want to test
  4. Describe your test goal (e.g. "Verify the login form submits correctly")
  5. Enter a filename for the test (e.g. login-test)
  6. The generated test file will open automatically in your editor

Extension Settings

You can set your Anthropic API key directly in src/agent.js or expose it via VS Code settings by adding it to your workspace configuration.

Author

<img src="https://github.com/Bhudeb/playwright-aiagent/blob/master/mentor.png" alt="Bhudeb Kr Sarkar" width="150" style="border-radius: 50%; margin-bottom: 10px; />

Bhudeb Kr Sarkar

Senior SDET, Quality Automation Leader, and globally recognized QA trainer with over 9 years of hands-on industry experience building and scaling automation ecosystems for high-growth technology products.

Bhudeb has trained and mentored a large number of QA professionals across India and international markets, working with freshers, manual testers, and experienced engineers who aspired to move into automation, SDET, and senior QA roles. His training impact spans multiple countries, remote teams, and diverse industry domains, making him a truly global mentor in modern software testing.

Known for his exceptional ability to simplify complex automation concepts and translate real production challenges into structured, practical learning — his sessions go far beyond tools, focusing on how real companies test, how failures occur in production, and how strong testers think, debug, and design automation frameworks.

🔗 LinkedIn


Release Notes

1.0.0

  • Initial release
  • Claude Opus integration for Playwright test generation
  • Aria snapshot support via Observer
  • Auto file creation and editor reveal
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft