Skip to content

testdriverai/testdriverai

Repository files navigation

Computer-Use SDK for E2E QA Testing

The TestDriver SDK is a JS plugin for vitest that makes it easy to spawn ephemeral devices and use vision-based LLMs to construct detemanistic and reliable tests.

🚀 Quick Start📖 Documentation💻 Examples📖 Pricing💬 Discord🌐 Website

image

Why TestDriver?

Don't ship bugs because flows are too hard to test. TestDriver helps engineering teams easily test, debug, and monitor E2E flows that are hard or impossible to cover with other tools like:

Third-Party Web AppsDesktop AppsVS Code ExtensionsChrome ExtensionsAI ChatbotsOAuth FlowsPDF ContentSpelling & GrammarFile System & UploadsOS AccessibilityVisual Content<iframe><canvas><video>

Example

// Click on the new text document
await testdriver.find("New text document").mouseDown();

// Drag the "New Text Document" icon to the "Recycle Bin" 
await testdriver.find("Recycle Bin icon").mouseUp();

// Assert "New Text Document" icon is not on the Desktop
const result = await testdriver.assert(
  'the "New Text Document" icon is not visible on the Desktop'
);
expect(result).toBeTruthy();

See Full ExampleBrowse All Examples


🚀 Quick Start

Step 1: Create a TestDriver Account

Sign Up

No credit card required!

Step 2: Initialize Your Project

npx testdriverai@beta init

This will:

  • Create a project folder
  • Install dependencies (Vitest + TestDriver)
  • Set up your API key
  • Generate an example test

Step 3: Run Your First Test

vitest run

Watch as TestDriver:

  1. Spawns a cloud sandbox
  2. Launches Chrome
  3. Runs your test using AI vision
  4. Returns results with video replay

Full Quickstart