TestBro Documentation

TestBro is an AI-powered browser testing tool that generates and runs automated Playwright tests from plain English descriptions. Stop writing brittle selectors by hand -- describe what you want to test and let AI handle the rest.

Key Features

  • Plain English Test Descriptions -- Write tests in natural language instead of code. TestBro translates your intent into Playwright actions automatically.
  • AI Vision Testing -- Uses GPT-4o-mini vision to locate elements on the page, making tests resilient to UI changes.
  • Selector Learning -- When AI finds elements, it learns the underlying selectors for faster future runs.
  • Test Case Generation -- Generate comprehensive test suites from PRDs, acceptance criteria, or feature descriptions.
  • Three Execution Modes -- Choose between speed (selectors), flexibility (AI), or the best of both (hybrid).
  • Built on Playwright -- All the reliability and cross-browser support of Playwright, without the boilerplate.

Execution Modes

TestBro supports three execution modes to fit different testing needs:

ModeSpeedFlexibilityBest For
SelectorFastRequires stable selectorsRegression testing on stable UIs
AISlowerAdapts to UI changesNew features, dynamic interfaces
HybridBalancedSelectors first, AI fallbackRecommended for most use cases

Quick Links

How It Works

  1. Describe -- Write what you want to test in plain English, or provide a PRD/acceptance criteria file.
  2. Generate -- TestBro uses AI to generate structured test cases with steps, targets, and assertions.
  3. Execute -- Tests run in a real browser using Playwright, with AI vision or learned selectors to find elements.
  4. Report -- Get clear pass/fail results with details on what happened at each step.