Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of already installed Chrome #288

Closed
bricss opened this issue Aug 16, 2017 · 5 comments
Closed

Use of already installed Chrome #288

bricss opened this issue Aug 16, 2017 · 5 comments

Comments

@bricss
Copy link

bricss commented Aug 16, 2017

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?

@ebidel
Copy link
Contributor

ebidel commented Aug 16, 2017

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

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 :)

@ebidel ebidel closed this as completed Aug 16, 2017
@ebidel
Copy link
Contributor

ebidel commented Aug 16, 2017

See also #244

@pratik-joshi-cactus
Copy link

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

@leoplct
Copy link

leoplct commented Jan 11, 2022

This works for me on Mac OSX

const browser = await puppeteer.launch({
    args: ['--no-sandbox', '--disable-setuid-sandbox'],
    headless: false ,
    executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" //Found at chrome://version
});

@Jazeb
Copy link

Jazeb commented May 31, 2022

I found the path in Linux as:
/usr/bin/chromium-browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants