Skip to content

akkikumar72/web-page-analyzer

Repository files navigation

🔍 Web Page Action Analyzer

Automated web page interaction analysis powered by AI and Playwright

🎥 Demo

qa-1757009250665.mp4

📊 What you'll see in the demo:

  • 🔗 URL Input - Enter any website URL to analyze
  • Auto-Discovery - Tool finds all interactive elements (buttons, forms, links)
  • 🤖 Smart Interactions - Playwright clicks and interacts with each element
  • 📸 Screenshot Capture - Before/after images of each interaction
  • 🧠 AI Analysis - OpenAI analyzes what changed and generates annotations
  • 📋 Structured Output - JSON results ready for testing frameworks

🚀 What it does

This tool automatically:

  • 📊 Discovers all interactive elements on any web page
  • 🤖 Interacts with buttons, forms, links, and controls using Playwright
  • 📸 Captures before/after screenshots of each interaction
  • 🧠 Analyzes changes using OpenAI to understand what each action does
  • 📋 Generates structured annotations for QA testing and documentation

Perfect for understanding complex web applications, generating test cases, or documenting user workflows.

🛠️ Setup

Prerequisites

  • Node.js 18+
  • OpenAI API key

Installation

# Clone and install dependencies
cd component-analyzer
bun install

Environment Setup

Create .env.local:

OPENAI_API_KEY=your_openai_api_key_here

🏃‍♂️ Running

# Development server
bun run dev

# Production build
bun run build && npm start

Open http://localhost:3000

💡 Usage

  1. Enter URL - Input any website URL
  2. Analyze - Click analyze to start automated discovery
  3. Review Results - See detailed annotations with:
    • Element types and selectors
    • Before/after screenshots
    • AI-powered change analysis
    • Interaction coordinates
    • Confidence scores

🎯 Features

  • 80+ Interactive Element Types - Comprehensive selector coverage
  • AI-Powered Analysis - Understands UI changes contextually
  • Visual Diff Tracking - Screenshot comparisons
  • Structured Output - JSON annotations ready for testing frameworks
  • Modern UI - Clean interface built with Next.js + Tailwind

🔧 Tech Stack

  • Frontend: Next.js 15, React 19, Tailwind CSS
  • Automation: Playwright
  • AI: OpenAI GPT-4 with structured outputs
  • Language: TypeScript

About

Automated web page interaction analysis powered by AI and Playwright

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages