多个浏览器的量角器测试在启动时失败

Protractor tests with Muliple browsers got failed at startup

我正在尝试 运行 chrome 和 firefox 的 e2e 测试,但我无法加载具有以下配置的 chrome 浏览器,非常感谢任何评论,谢谢

var HtmlReporter = require('protractor-beautiful-reporter');
exports.config = {
    seleniumAddress: 'http://localhost:4444/wd/hub',
            specs: [ **some spec**
            ],
    multiCapabilities: [{
        "browserName": "firefox"
    },
        {
            "browserName": "chrome",
    }
    ],
    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 180000
    },
    allScriptsTimeout: 200000,
    onPrepare: function () {
        browser.manage().timeouts().implicitlyWait(20000);
        jasmine.getEnv().addReporter(new HtmlReporter({
            baseDirectory: 'test-result',
            preserveDirectory: false,
            takeScreenShotsOnlyForFailedSpecs: true,
            screenshotsSubfolder: 'images'
        }).getJasmine2Reporter());
    }
};

尝试 directConnect: true 而不是使用 seleniumAddress: http://localhost:4444/wd/hub

或确保您的网格服务器已启动且 运行 并且硒服务器已启动且 运行

启动 selenium 服务器的命令webdriver-manager start