1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["13333"],{58149(e,r,t){t.r(r),t.d(r,{metadata:()=>s,default:()=>h,frontMatter:()=>o,contentTitle:()=>a,toc:()=>d,assets:()=>l});var s=JSON.parse('{"id":"browsers-api/browsers.browserprovider.getexecutablepath","title":"BrowserProvider.getExecutablePath() method","description":"Get the relative path to the executable within the extracted archive.","source":"@site/.generated-docs/next/browsers-api/browsers.browserprovider.getexecutablepath.md","sourceDirName":"browsers-api","slug":"/browsers-api/browsers.browserprovider.getexecutablepath","permalink":"/next/browsers-api/browsers.browserprovider.getexecutablepath","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"BrowserProvider.getExecutablePath"},"sidebar":"browsersApi","previous":{"title":"BrowserProvider.getDownloadUrl","permalink":"/next/browsers-api/browsers.browserprovider.getdownloadurl"},"next":{"title":"BrowserProvider.getName","permalink":"/next/browsers-api/browsers.browserprovider.getname"}}'),n=t(74848),i=t(28453);let o={sidebar_label:"BrowserProvider.getExecutablePath"},a="BrowserProvider.getExecutablePath() method",l={},d=[{value:"Signature",id:"signature",level:3},{value:"Parameters",id:"parameters",level:2},{value:"Example",id:"example",level:2}];function c(e){let r={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.header,{children:(0,n.jsx)(r.h1,{id:"browserprovidergetexecutablepath-method",children:"BrowserProvider.getExecutablePath() method"})}),"\n",(0,n.jsx)(r.p,{children:"Get the relative path to the executable within the extracted archive."}),"\n",(0,n.jsx)(r.h3,{id:"signature",children:"Signature"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-typescript",children:"interface BrowserProvider {\n getExecutablePath(options: {\n browser: Browser;\n buildId: string;\n platform: BrowserPlatform;\n }): Promise<string> | string;\n}\n"})}),"\n",(0,n.jsx)(r.h2,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)("table",{children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:(0,n.jsx)(r.p,{children:"Parameter"})}),(0,n.jsx)("th",{children:(0,n.jsx)(r.p,{children:"Type"})}),(0,n.jsx)("th",{children:(0,n.jsx)(r.p,{children:"Description"})})]})}),(0,n.jsx)("tbody",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsx)(r.p,{children:"options"})}),(0,n.jsx)("td",{children:(0,n.jsxs)(r.p,{children:["{ browser: ",(0,n.jsx)(r.a,{href:"/next/browsers-api/browsers.browser",children:"Browser"}),"; buildId: string; platform: ",(0,n.jsx)(r.a,{href:"/next/browsers-api/browsers.browserplatform",children:"BrowserPlatform"}),"; }"]})}),(0,n.jsx)("td",{children:(0,n.jsx)(r.p,{children:"Browser, buildId, and platform"})})]})})]}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,n.jsx)(r.p,{children:"Promise<string> | string"}),"\n",(0,n.jsx)(r.p,{children:"Relative path to the executable"}),"\n",(0,n.jsx)(r.h2,{id:"example",children:"Example"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-ts",children:"// Electron uses simple structure\ngetExecutablePath() {\n return 'chromedriver/chromedriver';\n}\n\n// Custom provider with platform-specific paths\ngetExecutablePath(options) {\n return `binaries/${options.browser}-${options.platform}`;\n}\n"})})]})}function h(e={}){let{wrapper:r}={...(0,i.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},28453(e,r,t){t.d(r,{R:()=>o,x:()=>a});var s=t(96540);let n={},i=s.createContext(n);function o(e){let r=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function a(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),s.createElement(i.Provider,{value:r},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.