on-internet
← Community

Using puppeteer-core instead of puppeteer

Stack Overflow ·

As per the documentation https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#puppeteer-vs-puppeteer-core, I am trying to use puppeteer-core library instead of puppeteer so that I can install headless-shell instead of default chromium lib that comes with puppeteer. I download the content-shell.zip for mac from this location https://chromium.cypress.io/mac/canary/89.0.4342.2 and used the below code, const browser = await puppeteer.launch({executablePath: 'content-shell' }); it fails with the below error, Error: Failed to launch the browser process! spawn content-shell ENOENT TROUBLESHOO

Comments

Sign in or sign up to comment and upvote.

No comments yet.