WebQA Agent is an autonomous web browser agent that audits performance, functionality & UX for engineers and vibe-coding creators.
Project description
WebQA Agent
Try Demo 🤗HuggingFace | 🚀ModelScope
Join us on 🎮Discord | 💬WeChat
If you like WebQA Agent, please give us a ⭐ on GitHub!
🤖 WebQA Agent is a fully automated web testing agent for multi-modal understanding, test generation, and end-to-end evaluation of functionality, performance, and UX. ✨
📑 Table of Contents
- Core Features
- Examples
- Quick Start
- Usage
- Extending WebQA Agent Tools
- RoadMap
- Acknowledgements
- License
🚀 Core Features
📋 Feature Overview
WebQA-Agent provides two testing modes to support different scenarios 🤖 Generate Mode and 📋 Run Mode.
| Capability | 🤖 Generate Mode | 📋 Run Mode |
|---|---|---|
| Core Features | AI-driven discovery -> Dynamic generation -> Precise execution | Execute based on instructions and expected verification |
| Use Cases | New feature, comprehensive quality assurance | Repeatable and regression testing scenarios |
| User Input | Minimal: Only URL or a one-sentence business goal | Structured: Simple natural language step descriptions |
| Advantages | Reflection-based planning, adaptive to UI changes; Configurable functional / performance / security / UX evaluation for comprehensive QA | Stable and predictable results; No selector maintenance; Real-time Console and Network monitoring |
🧭 Architecture
📹 Examples
- 🤖 Conversational UI: Autonomously plans goals and interacts across a dynamic chat interface
- 🎨 Creative Page: Explores page structure, identifies elements
- 🖼️ Testing Baidu Image Generation:
Try Demo: 🤗Hugging Face · 🚀ModelScope
🚀 Quick Start
🏎️ Recommended uv (Python>=3.11):
# 1) Create project and install package
uv init my-webqa && cd my-webqa
uv add webqa-agent
# 2) Install browser (required)
uv run playwright install chromium
# 3) Generate Mode
# Initialize Gen mode configuration (config.yaml)
uv run webqa-agent init -m gen
# Edit config.yaml: target.url, llm_config.api_key
# Configure test_config
# For more details, see "Usage > Generate Mode - Configuration" below
# Run Generate Mode
uv run webqa-agent gen
# Generate Mode with specified config and 4 parallel workers
uv run webqa-agent gen -c /path/to/config.yaml -w 4
# 4) Run Mode
# Initialize Run mode configuration (config_run.yaml)
uv run webqa-agent init -m run
# Edit config.yaml: target.url, llm_config.api_key
# Write natural language test cases
# For more details, see "Usage > Run Mode - Configuration" below
# Run Run Mode
uv run webqa-agent run
# Run Mode with specified config and 4 parallel workers
uv run webqa-agent run -c /path/to/config_run.yaml -w 4
🔧 Generate Mode - Optional Dependencies
Performance testing (Lighthouse): npm install lighthouse chrome-launcher (requires Node.js ≥18)
Security testing (Nuclei):
brew install nuclei # macOS
nuclei -ut # Update templates
# Linux/Windows: https://github.com/projectdiscovery/nuclei/releases
🐳 Generate Mode - Docker One-liner Start
Please ensure Docker is installed (recommended Docker >= 24.0, Docker Compose >= 2.32). Official guide: Docker Installation
mkdir -p config \
&& curl -fsSL https://raw.githubusercontent.com/MigoXLab/webqa-agent/main/config/config.yaml.example -o config/config.yaml
# Edit config.yaml: set target.url, llm_config.api_key, etc.
curl -fsSL https://raw.githubusercontent.com/MigoXLab/webqa-agent/main/start.sh | bash
⚙️ Usage
Generate Mode - Configuration
The configuration file must include the test_config field to define test types.
- Functional Testing (AI type): Validates correctness of page functionality. Optional configurations:
- business_objectives: Specifies business goals to steer test focus and coverage.
- dynamic_step_generation: Enables automatic generation of additional steps when new UI elements are detected during execution.
- filter_model: Configures a lightweight model for pre-filtering page elements to improve planning efficiency.
- Functional Testing (default type): Does not rely on LLMs; focuses only on interaction success (clicks, navigation, etc.).
- User Experience Testing: Evaluates visual quality, typography/grammar, layout rendering, and provides optimization suggestions based on best practices.
- Performance Testing: Based on Lighthouse; evaluates performance, SEO, and related metrics.
- Security Testing: Based on Nuclei, scans web security vulnerabilities and potential risks.
For more details, please refer to docs/MODES&CLI.md
target:
url: https://example.com # Website URL to test
description: Website QA testing
test_config:
function_test: # Functional testing
enabled: True
type: ai # 'default' or 'ai'
business_objectives: Test search functionality, generate 3 test cases
ux_test: # User experience testing
enabled: True
performance_test: # Performance analysis (requires Lighthouse)
enabled: False
security_test: # Security scanning (requires Nuclei)
enabled: False
llm_config: # LLM configuration, supports OpenAI, Anthropic Claude, Google Gemini, and OpenAI-compatible models (e.g., Doubao, Qwen)
model: gpt-4.1-2025-04-14 # Primary model
filter_model: gpt-4o-mini # Lightweight model for element filtering (optional)
api_key: your_api_key # Or set via environment variable (OPENAI_API_KEY)
base_url: https://api.openai.com/v1 # Optional, API endpoint. For OpenAI-compatible models (Doubao, Qwen, etc.), set to their API endpoint
browser_config:
headless: False # Auto True in Docker
language: en-US
report:
language: en-US # zh-CN or en-US
Run Mode - Configuration
Run Mode configuration must include the cases field.
- Multi-modal Interaction: Use
actionto describe visible text, images, or relative positions on the page. Supported browser actions include click, hover, input, clear, keyboard input, scrolling, mouse movement, file upload, drag-and-drop, and wait; page actions include navigation, back. - Multi-modal Verification: Use
verifyto ensure the agent stays on track, validating visual content, URLs, paths, and combined image–element conditions. - End-to-End Monitoring: Monitoring
Consolelogs andNetworkrequest status, and supporting configuration ofignore_rulesto ignore known errors.
For more details and test case writing specifications, please refer to docs/MODES&CLI.md
target:
url: https://example.com # Target website URL
llm_config: # LLM configuration
api: openai
model: gpt-4o-mini
api_key: your_api_key_here
base_url: https://api.openai.com/v1
browser_config:
viewport: {"width": 1280, "height": 720}
headless: False # Auto True in Docker
language: en-US
# cookies: /path/to/cookie.json
ignore_rules: # Ignore rules configuration (optional)
network: # Network request ignore rules
- pattern: ".*\\.google-analytics\\.com.*"
type: "domain"
console: # Console log ignore rules
- pattern: "Failed to load resource.*favicon"
match_type: "regex"
- pattern: "Warning:"
match_type: "contains"
cases: # Test case list
- name: Image Upload # Test case name
steps: # Test steps
- action: Upload icon is the image icon in the input box, located next to the Baidu search button, used for uploading files
args:
file_path: ./tests/data/test.jpeg
- action: Wait for image upload
- verify: Verify that the input field displays an open palm/hand icon image
- action: Enter "How many fingers are in the image?" in the search input box, then press Enter, wait 2 seconds
📊 View Results
Test reports are generated in the reports/ directory. Open the HTML file to view detailed results.
🛠️ Extending WebQA Agent Tools
WebQA Agent supports custom tool development for domain-specific testing capabilities.
| Document | Description |
|---|---|
| Custom Tool Development | Quick reference for creating custom tools |
| LLM Context Document | Comprehensive guide for AI-assisted development, useful for vibe coding |
We welcome contributions! Check out existing tools for examples.
🗺️ RoadMap
- Interaction & Visualization: Real-time display of reasoning processes
- Generate Mode Expansion: Integration of additional evaluation dimensions
- Tool Agent Context Integration: More comprehensive and precise execution
🙏 Acknowledgements
- natbot: Drive a browser with GPT-3
- Midscene.js: AI Operator for Web, Android, Automation & Testing
- browser-use: AI Agent for Browser control
📄 License
This project is licensed under the Apache 2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webqa_agent-0.2.3.tar.gz.
File metadata
- Download URL: webqa_agent-0.2.3.tar.gz
- Upload date:
- Size: 3.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dcaa33bb42cd1e4aacc1ad4e16d27c6cbecde6fc8d7723ac79cb3cf9b4382c4
|
|
| MD5 |
9c4a316b0b3a35f1c69edbac5f724b4d
|
|
| BLAKE2b-256 |
9e5f4f17c2bf04dbae808f1529856797eeacd8f2066b82fa60d17dfe62f2f380
|
Provenance
The following attestation bundles were made for webqa_agent-0.2.3.tar.gz:
Publisher:
workflow.yml on MigoXLab/webqa-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webqa_agent-0.2.3.tar.gz -
Subject digest:
8dcaa33bb42cd1e4aacc1ad4e16d27c6cbecde6fc8d7723ac79cb3cf9b4382c4 - Sigstore transparency entry: 831133028
- Sigstore integration time:
-
Permalink:
MigoXLab/webqa-agent@5e7c5dfd48110e7f5b1f7ee4b3622ba771db7642 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/MigoXLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@5e7c5dfd48110e7f5b1f7ee4b3622ba771db7642 -
Trigger Event:
push
-
Statement type:
File details
Details for the file webqa_agent-0.2.3-py3-none-any.whl.
File metadata
- Download URL: webqa_agent-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
767201367008c5a47528b38bbc673d544943d7a23792212637a33623d2b27da7
|
|
| MD5 |
5f95a430889f23bf1e3b1833bf19a745
|
|
| BLAKE2b-256 |
37a9dfff8da7f1a7d46ecbf46e5d4d7d66412c39226878508d14d2bf81a88896
|
Provenance
The following attestation bundles were made for webqa_agent-0.2.3-py3-none-any.whl:
Publisher:
workflow.yml on MigoXLab/webqa-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webqa_agent-0.2.3-py3-none-any.whl -
Subject digest:
767201367008c5a47528b38bbc673d544943d7a23792212637a33623d2b27da7 - Sigstore transparency entry: 831133039
- Sigstore integration time:
-
Permalink:
MigoXLab/webqa-agent@5e7c5dfd48110e7f5b1f7ee4b3622ba771db7642 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/MigoXLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@5e7c5dfd48110e7f5b1f7ee4b3622ba771db7642 -
Trigger Event:
push
-
Statement type: