【发布时间】:2020-09-26 13:52:21
【问题描述】:
为什么我无法在浏览器中加载 Chrome? 我得到错误:
消息是启动浏览器进程失败!产卵 /Applications/GoogleChrome.app ENOENT 疑难解答: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
节点版本 v13.12.0
const browser = await puppeteer.launch({executablePath:'/Applications/Google\Chrome.app'});
const page = await browser.newPage();
await page.goto('https://my.gumtree.com/login', {waitUntil: 'networkidle2'});
const myButton = await page.$('#google-sign-in-button');
myButton.click();
【问题讨论】: