Files
puppeteer/website/versioned_docs/version-25.4.0/browsers-api/browsers.browserprovider.getexecutablepath.md
browser-automation-botGitHubrelease-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
4d7b677d1d chore: release main (#15201)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2026-07-27 14:29:23 +02:00

1.0 KiB

sidebar_label
sidebar_label
BrowserProvider.getExecutablePath

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}`;
}