mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
[api] add Puppeteer.executablePath() method (#771)
This patch adds Puppeteer.executablePath() method to query the path of bundled chromium. Fixes #745
This commit is contained in:
@@ -111,6 +111,14 @@ class Launcher {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
static executablePath() {
|
||||
const revisionInfo = Downloader.revisionInfo(Downloader.currentPlatform(), ChromiumRevision);
|
||||
return revisionInfo.executablePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} options
|
||||
* @return {!Promise<!Browser>}
|
||||
|
||||
Reference in New Issue
Block a user