- Find browser's executable path:
Go tochrome://version/(inside Chrome browser) and find"Executable Path"variable ("/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"in my case) - Modify your script:
const browser = await puppeteer.launch({
executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
args: ['--disable-blink-features=AutomationControlled'],
headless: false,
});- PROFIT