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 viatestdriver.provision.*:
Methods
chrome()
Launch Google Chrome with an optional URL.chromeExtension()
Install and launch a Chrome extension. You can install from a local unpacked directory or from the Chrome Web Store by extension ID.One of
extensionPath or extensionId is required.vscode()
Launch Visual Studio Code with an optional workspace and extensions.installer()
Download and run an application installer. Supports.msi, .exe, .deb, .rpm, .appimage, .sh, .dmg, and .pkg formats.
- Downloads the installer from the URL
- Auto-detects the install method based on file extension
- Runs the appropriate install command (e.g.,
msiexecfor.msi,dpkgfor.deb) - Optionally focuses the installed application

