question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[heads-up] puppeteer.executablePath() is introduced

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
rogeriopvlcommented, Sep 22, 2017

@aslushnikov thanks. Code example updated in: 6f41067

1reaction
aslushnikovcommented, Sep 21, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found