so am trying to launch puppeteer with already existed chrome profile and it works , but what i want to do is to launch the same process multiple time which throw an error
(node:12820) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process! [0311/152606.490:ERROR:chrome_main_delegate.cc(679)] Web security may only be disabled if '--user-data-dir' is also specified with a non-default value
am doing it in this way :
const browser = await puppeteer.launch({
executablePath: "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
headless: false,
// excludeSwitches: 'enable-automation',
args: [
'--user-data-dir=C:\\Users\\USER\\AppData\\Local\\Google\\Chrome\\User Data'
],
});
from how to launch puppeteer with an already existing profile multiple time
No comments:
Post a Comment