我喜欢在一个无头的chrome上运行我的karma单元测试。使用karma-chrome-launcher并将浏览器设置为"ChromeHeadless“可以在我的机器上运行。但是在CI服务器上失败,并显示消息"No binary for ChromeHeadless browser on your platform“。无法<
我面临的问题是,当我设置我的浏览器-无头:假,一切正常,但当我设置我的无头:是的,Gmail开始要求captcha,它说的时候,浏览器是不安全的。这是我的简单代码和屏幕截图。usage as normal
puppeteer.launch({ headless: true, executablePath: '/Applications/Google <