Skip to main content
Version: Next

BrowserProvider.getExecutablePath() method

Get the relative path to the executable within the extracted archive.

Signature

interface BrowserProvider {
getExecutablePath(options: {
browser: Browser;
buildId: string;
platform: BrowserPlatform;
}): Promise<string> | string;
}

Parameters

Parameter

Type

Description

options

{ browser: Browser; buildId: string; platform: BrowserPlatform; }

Browser, buildId, and platform

Returns:

Promise<string> | string

Relative path to the executable

Example

// Electron uses simple structure
getExecutablePath() {
return 'chromedriver/chromedriver';
}

// Custom provider with platform-specific paths
getExecutablePath(options) {
return `binaries/${options.browser}-${options.platform}`;
}