[heads-up] puppeteer.executablePath() is introduced
See original GitHub issueHi,
I’ve seen you’re reaching out to ChromiumDownloader to get the executable path in your README.md:
// karma.conf.js
const ChromiumRevision = require('puppeteer/package.json').puppeteer.chromium_revision
const Downloader = require('puppeteer/utils/ChromiumDownloader')
const revisionInfo = Downloader.revisionInfo(Downloader.currentPlatform(), ChromiumRevision)
process.env.CHROME_BIN = revisionInfo.executablePath
module.exports = function(config) {
config.set({
browsers: ['ChromeHeadless']
})
}
A few minutes ago, Puppeteer got a puppeteer.executablePath()
method introduced, so there would be no need to reach to undocumented ChromiumDownloader in future.
Note: the method is a part of Puppeteer 0.11.0, which is not released yet.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
How to use the puppeteer.executablePath function in puppeteer
To help you get started, we've selected a few puppeteer.executablePath examples, based on popular ways it is used in public projects.
Read more >node.js win10 puppeteer executablePath string - Stack Overflow
I have run npm install for this project, but when I run it with node app. js , I get an error for...
Read more >LaunchOptions.executablePath property - Puppeteer
LaunchOptions.executablePath property. Path to a browser executable to use instead of the bundled Chromium. Note that Puppeteer is only guaranteed to work ...
Read more >Automating Karma and headless Chrome with Puppeteer
Puppeteer 0.11.0 will introduce an official and documented way to get Chromium's executable path: puppeteer.executablePath() .
Read more >Use executablePath in Puppeteer With Examples - LambdaTest
Learn how to use executablePath function in Puppeteer framework for your next JavaScript automation project with LambdaTest Automation Testing Advisor.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aslushnikov thanks. Code example updated in: 6f41067
@rogeriopvl pptr v0.11.0 is live now: https://github.com/GoogleChrome/puppeteer/releases/tag/v0.11.0