Puppeteer: Use of already installed Chrome

Created on 16 Aug 2017  ·  3Comments  ·  Source: puppeteer/puppeteer

Ok then, but what if I don't want to download standalone Chromium and want to use already installed Chrome on my machine? Or have no internet access on build machine and like to install it on my own?

Most helpful comment

There's a note on this in the readme. You can point to an existing install of chromium using executablePath:

javascript const browser = await puppeteer.launch({executablePath: '/path/to/Chrome'});

Just note that the Puppeteer API is not guaranteed to work if you use a diff version of chrome.

If you don't have an internet connection, then I'm not sure. It'll be hard to install the package in the first place :)

All 3 comments

There's a note on this in the readme. You can point to an existing install of chromium using executablePath:

javascript const browser = await puppeteer.launch({executablePath: '/path/to/Chrome'});

Just note that the Puppeteer API is not guaranteed to work if you use a diff version of chrome.

If you don't have an internet connection, then I'm not sure. It'll be hard to install the package in the first place :)

Not working :/ in Version 75.0.3770.100 (Official Build) (64-bit), It still opens up new instance of chrome and it has no history whatsoever, I had to open it along with my other chrome tabs.

const puppeteer = require('puppeteer');
const pptr = require('puppeteer-core');
(async () => {

    const browser = await puppeteer.launch({
      headless: false,
      executablePath: '/usr/bin/google-chrome'
    });

})();

Here I also tried puppeteer-core , means pptr variable await pptr.launch in above variable, still not working. The issues is not closed!
Please check :
https://drive.google.com/file/d/1WKjgPeruK9-ABeHHsumhcjs_FTlzFH4S/view

Was this page helpful?
0 / 5 - 0 ratings