Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>E2E Test Generator (Beta)New to Visual Studio Code? Get it now.
E2E Test Generator (Beta)

E2E Test Generator (Beta)

TestGenX Team

|
193 installs
| (9) | Free
Beta Version - Powerful Playwright E2E Test Generator for VS Code - Create, record, and automate cross-browser tests with ease. Features intelligent element detection, Flutter web support, and seamless CI/CD integration.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

E2E Test Generator: Intelligent Playwright Test Automation Tool

Beta VS Code Extension Powered by Playwright Cross-Browser

⚠️ Beta Notice

This extension is currently in active beta development.
We're excited to share early access with our community!

Please note: Features may change according to feedback.

🚀 Efficient Precision Testing for Developers

Next-Gen Test Automation
Transform browser interactions into reliable Playwright tests with AI-assisted precision. Key features:

  • Smart Element Detection: Auto-generates robust locators (XPath/CSS/Text) with cross-frame tracking.
  • Intelligent Assertions: Context-aware validation points with DOM state verification.
  • Real-Time Code Sync: Instant Playwright code updates during interaction.
  • Intelligent Recording: Floating toolbar controls (pause/resume/step insertion).
  • Workspace Integration: Automatic test file management (.spec.js) with config priority.
  • Locator Strategies: Global repository management with XPath/CSS fallbacks.
  • Cross-Browser Ready: Built-in support for Chromium and Firefox.

Quick Links:

  • Start Recording
  • Running Tests
  • Demo Videos
    • Feature Demos
    • Record Demo
    • Run Demo
  • License
  • Support

Start Recording

  1. Configure Test Details

    • Click the TestGenX icon in the Activity Bar.
    • Or run View: Show E2E Test Generator from Command Palette.
    • Enter test file name (auto-appends .spec.js).
    • Provide unique test name.
    • Input target URL (validates and auto-corrects protocol).
  2. Initiate Recording

    • Click "Start Recording".
    • Browser launches with debugging controls.
    • Interactions are translated to Playwright code.
  3. Interact with Browser

    • Perform user actions in the embedded browser.
    • Use Context Menu to insert assertions.
    • Handle multi-page scenarios.
    • Pause/resume as needed.
    • Insert/Add test steps with floating toolbar.
    • Check for live recorded locator in the spec.js file.
  4. Generate Tests

    • Stop recording when finished by closing the browser or using stop recording button.
    • Review generated Playwright test file (.spec.js).
    • Execute tests directly from VS Code terminal.

Running Tests

  1. From Test Explorer

    • Locate your testcase in the spec.js file.
    • Click run icon next to test case or file.
  2. Settings

    • Webview Panel Settings
      • Access in settings section of recorder panel
      • Active only when no config file exists
      • Settings include : Test Browser, Headless mode, Show html Report, Debug Option. `
    • Playwright Config File (if present in workspace):
      • Always takes priority over Recorder Panel settings.
      • Detected automatically during test execution.

Demo

Record Demo:

Run Demo:

Feature Demos

Assertions

Demonstrates context-aware validation creation process:
  • Element visibility/state checks
  • Text content validation
  • Attribute value assertions
  • DOM state verification
Right-click any element to add assertions - automatically generates relevant checks based on element type and context

Real-Time Code Generation

Live code sync during browser interactions

Floating Toolbar Controls

Browser-embedded controls with:
  • Pause/Resume recording
  • Insert manual test steps
  • Refresh page while maintaining test context

Add Test Steps

Insert custom test steps mid-recording:
  • Click "+" in floating toolbar to pause and insert step
  • Add manual comments/descriptions for test logic
Maintains test flow while allowing custom code injections

License

This software is released under MIT License

Support

If you have a bug to report, a feature to suggest or any questions, feel free to contact us.

Email: info@testgenx.com
Or ping us at @testgenx on X.

Made with ❤️ by the TestGenX Team

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft