I am working on a puppeteer scraping bot, and am trying to use an existing profile to help with logging into websites. A blank tab opens in my existing chrome window, but I receive the follow error:
/Users/sroche/Desktop/bc-class-adder/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:229
reject(new Error([
^
Error: Failed to launch the browser process!
The code I am using is:
const browser = await puppeteer.launch({
headless: false,
executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
userDataDir: '/Users/sroche/Library/Application Support/Google/Chrome/',
});
const page = await browser.newPage()
...