Skip to main content

Overview

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.*:

Methods

chrome()

Start Google Chrome with an optional URL.
ProvisionChromeOptions

chromeExtension()

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.
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