Skip to main content

Overview

The Provision API sets up applications in your sandbox before tests run. It handles downloading, installing, and launching browsers, desktop apps, VS Code, Chrome extensions, and more. Access provision methods via testdriver.provision.*:

Methods

chrome()

Launch Google Chrome with an optional URL.
ProvisionChromeOptions

chromeExtension()

Install and launch a Chrome extension. You can install from a local unpacked directory or from the Chrome Web Store by extension ID.
ProvisionChromeExtensionOptions
required
One of extensionPath or extensionId is required.

vscode()

Launch Visual Studio Code with an optional workspace and extensions.
ProvisionVSCodeOptions

installer()

Download and run an application installer. Supports .msi, .exe, .deb, .rpm, .appimage, .sh, .dmg, and .pkg formats.
ProvisionInstallerOptions
required
Behavior:
  • Downloads the installer from the URL
  • Auto-detects the install method based on file extension
  • Runs the appropriate install command (e.g., msiexec for .msi, dpkg for .deb)
  • Optionally focuses the installed application

electron()

Launch an Electron application.
ProvisionElectronOptions
required

dashcam()

Start Dashcam recording with custom options. Usually called automatically by other provision methods, but can be called directly for custom configurations.
ProvisionDashcamOptions

Types

Complete Example