testdriver-agent
How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions
Launch browsers, desktop apps, and extensions in your sandbox
Claude Code
$ npx -y skills add testdriverai/testdriverai --skill testdriver-provision --agent claude-code
Codex
$ npx skills add testdriverai/testdriverai --skill testdriver-provision -a codex -y
Cursor
$ npx skills add testdriverai/testdriverai --skill testdriver-provision -a cursor -y
Gemini CLI
$ npx skills add testdriverai/testdriverai --skill testdriver-provision -a gemini-cli -y
GitHub Copilot
$ npx skills add testdriverai/testdriverai --skill testdriver-provision -a github-copilot -y
OpenCode
$ npx skills add testdriverai/testdriverai --skill testdriver-provision -a opencode -y
Windsurf
$ npx skills add testdriverai/testdriverai --skill testdriver-provision -a windsurf -y
name: testdriver:provision description: Launch browsers, desktop apps, and extensions in your sandbox
<!-- Generated from provision.mdx. DO NOT EDIT. -->
The Provision API sets up applications in your sandbox before the tests run. It downloads, installs, and starts browsers, desktop apps, VS Code, Chrome extensions, and more.
Use the provision methods through `testdriver.provision.*`:
await testdriver.provision.chrome({ url: 'https://example.com' });Start Google Chrome with an optional URL.
await testdriver.provision.chrome(options?)
<ParamField path="options" type="ProvisionChromeOptions"> <Expandable title="properties"> <ParamField path="url" type="string" default="http://testdriver-sandbox.vercel.app/"> The URL to go to after Chrome starts. </ParamField>
<ParamField path="maximized" type="boolean" default={true}> Start Chrome with the window at the maximum size. </ParamField>
<ParamField path="guest" type="boolean" default={false}> Start Chrome in the guest profile mode. </ParamField> </Expandable> </ParamField>
// Basic
await testdriver.provision.chrome({ url: 'https://example.com' });
// With guest mode
await testdriver.provision.chrome({
url: 'https://example.com',
guest: true,
maximized: true,
});Install and start a Chrome extension. You can install it from a local unpacked directory. Or you can install it from the Chrome Web Store by the extension ID.
await testdriver.provision.chromeExtension(options)
<ParamField path="options" type="ProvisionChromeExtensionOptions" required> One of `extensionPath` or `extensionId` is required.
<Expandable title="properties"> <ParamField path="extensionPath" type="string"> Local path to an unpacked extension directory. The extension files are uploaded to the sandbox. </ParamField>
<ParamField path="extensionId" type="string"> Chrome Web Store extension ID to install. </ParamField>
<ParamField path="maximized" type="boolean" default={true}> Launch Chrome in maximized window mode. </ParamField> </Expandable> </ParamField>
// From local directory
await testdriver.provision.chromeExtension({
extensionPath: './my-extension',
});
// From Chrome Web Store
await testdriver.provision.chromeExtension({
extensionId: 'abcdefghijklmnop',
});Launch Visual Studio Code with an optional workspace and extensions.
await testdriver.provision.vscode(options?)
<ParamField path="options" type="ProvisionVSCodeOptions"> <Expandable title="properties"> <ParamField path="workspace" type="string"> Path to a workspace folder or `.code-workspace` file to open. </ParamField>
<ParamField path="extensions" type="string[]" default={[]}> Array of VS Code extension IDs to install before launching. </ParamField> </Expandable> </ParamField>
await testdriver.provision.vscode({
workspace: '/home/testdriver/project',
extensions: ['ms-python.python', 'esbenp.prettier-vscode'],
});Download and run an application installer. Supports `.msi`, `.exe`, `.deb`, `.rpm`, `.appimage`, `.sh`, `.dmg`, and `.pkg` formats.
await testdriver.provision.installer(options)
<ParamField path="options" type="ProvisionInstallerOptions" required> <Expandable title="properties"> <ParamField path="url" type="string" required> Download URL for the installer. </ParamField>
<ParamField path="filename" type="string"> Override the auto-detected filename from the URL. </ParamField>
<ParamField path="appName" type="string"> Application name to focus after installation completes. </ParamField>
<ParamField path="launch" type="boolean" default={true}> Whether to focus/launch the app after installation. </ParamField> </Expandable> </ParamField>
**Behavior:**
// Windows MSI installer
await testdriver.provision.installer({
url: 'https://example.com/app-setup.msi',
appName: 'MyApp',
});
// Linux DEB package
await testdriver.provision.installer({
url: 'https://example.com/app.deb',
appName: 'MyApp',
launch: true,
});Launch an Electron application.
await testdriver.provision.electron(options)
<ParamField path="options" type="ProvisionElectronOptions" required> <Expandable title="properties"> <ParamField path="appPath" type="string" required> Path to the Electron application directory or executable. </ParamField>
<ParamField path="args" type="string[]" default={[]}> Additional command-line arguments to pass to the Electron app. </ParamField> </Expandable> </ParamField>
await testdriver.provision.electron({
appPath: '/home/testdriver/my-electron-app',
args: ['--no-sandbox'],
});Start Dashcam recording with custom options. Usually called automatically by other provision methods, but can be called directly for custom configurations.
await testdriver.provision.dashcam(options?)
<ParamField path="options" type="ProvisionDashcamOptions"> <Expandable title="properties"> <ParamField path="logPath" type="string"> Path to the TestDriver log file. Defaults to `/tmp/testdriver.log` (Linux) or `C:\Users\testdriver\testdriver.log` (Windows). </ParamField>
<ParamField path="logName" type="string" default="TestDriver Log"> Display name for the log file in the Dashcam replay. </ParamField>
<ParamField path="webLo
How the TestDriver agent behaves on GitHub issues, pull requests, and @mentions
Deploy TestDriver on your AWS infrastructure using CloudFormation
How TestDriver learns your app and caches what it discovers for instant, deterministic replays
Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…
Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…
DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…