我正在尝试在 chrome、IE 和 firefox 的 Saucelabs 上运行 wdio 测试。
测试适用于 chrome 和 IE,但是对于 Firefox 却失败了:
Infrastructure Error -- The Sauce VMs failed to start the browser or device.
我正在使用最新版本的 wdio 和酱汁服务:
"devDependencies": {
"@wdio/cli": "^6.1.5",
"@wdio/cucumber-framework": "^6.1.1",
"@wdio/local-runner": "^6.1.5",
"@wdio/sauce-service": "^6.1.0",
"@wdio/spec-reporter": "^6.1.5",
"@wdio/sync": "^6.1.5",
"chromedriver": "^81.0.0",
"wdio-chromedriver-service": "^6.0.2"
}
我的浏览器配置:
capabilities: [
{
maxInstances: 3,
browserName: "chrome",
browserVersion: "latest"
},
{
maxInstances: 3,
browserName: "firefox",
browserVersion: "latest",
platform: "windows 10",
"sauce:options": {
seleniumVersion: "3.14.0",
},
},
{
maxInstances: 3,
browserName: "internet explorer",
browserVersion: "latest"
},
],