-1

WSL protractor e2e 测试无法启动 chrome,并抛出错误

 E/launcher - unknown error: Chrome failed to start: exited abnormally.   (chrome not reachable)
4

1 回答 1

0

打开量角器.conf.js

更新配置并添加'--no-sandbox' chromeOptions.args

 exports.config = {
    capabilities: {
        browserName: 'chrome',
        chromeOptions: {
            args: [
                '--no-sandbox',// <= this argument here
            ],
        },
    },
 }

于 2022-02-21T14:14:18.083 回答