uceLabs上的webdriverIO测试不适用于Firefox

问题描述 投票:1回答:1

我正在尝试对适用于Chrome,IE和Firefox的酱料实验室进行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"
    },
  ],

我正在尝试在适用于Chrome,IE和Firefox的酱料实验室中进行wdio测试。测试对于chrome和IE可以正常工作,但是对于Firefox却失败,原因是:基础结构错误-Sauce VM无法启动...

selenium-webdriver firefox cucumber saucelabs wdio-v5
1个回答
1
投票

这是WebdriverIO和Sauce Labs如何处理W3C browser options的问题。您确实需要提供sauce:options功能才能使用Firefox的最新版本,如下所示:

© www.soinside.com 2019 - 2024. All rights reserved.