Prerequisites
- Git
- Docker and Docker Compose (recommended) OR Python 3.11+
- API keys for your agent (e.g., OpenAI for BrowserUse)
Quick Setup with Docker
1
Clone the Repository
2
Configure Environment Variables
Copy the example environment file and add your API keys:Edit
collector/.env
and add your API keys:3
Create Test Prompts
Create a test prompt file in The first line is the URL (with optional dark pattern), and the second line is the task.
data/prompts/quickstart/test.txt
:4
Run Your First Test
Use Docker Compose to run the BrowserUse agent:Or modify
docker-compose.yml
to specify your prompt directory:Alternative: Setup Without Docker
If not using Docker, follow the same clone and environment setup, then:Output Structure
data/db/browseruse/quickstart/test_1/video/test.mp4
View database: sqlite3 data/db/browseruse/quickstart/test_1/test.db
Testing with Dark Patterns
Dark patterns are specified in the URL query parameter. Here are some examples:Bait and Switch
Disguised Ads
Multiple Dark Patterns
Running Multiple Tests
Place multiple prompt files in a directory and run:Evaluating Results
After collecting data, run the evaluation suite:numbers/custom_comparison_results.csv
.
Next Steps
Installation Guide
Detailed installation instructions for all platforms
Understanding Agents
Learn about the different agents you can test
Creating Test Prompts
Advanced prompt creation and testing strategies
Evaluation Suite
Analyze and evaluate your test results