AI Playwright Test Agent

Automated UI Test Generation with AI-Powered Workflow Analysis

Solution Design

Codebase Scanning

Tự động scan React/TSX/HTML codebase để phát hiện UI elements

Workflow Graph

Build graph workflow với nodes và edges để map navigation flow

AI Generation

Sử dụng GPT để generate Playwright test scripts tự động

Multi-page Scenarios

Tự động infer test scenarios cho navigation đa trang

Quick Start

Terminal
# Clone repository
git clone https://github.com/yourusername/ai-playwright-agent.git

# Install dependencies
cd ai-playwright-agent
npm install

# Configure OpenAI API key
export OPENAI_API_KEY=your_api_key

# Run the agent
npm run scan -- --path ./your-codebase

Tech Stack

TypeScript Node.js Playwright OpenAI GPT React/TSX AST Parser