wdio.conf.js文件中“运行器”的有效值是什么?

时间:2019-10-01 20:53:30

标签: webdriver-io wdio-v5

对于Webdriver.io,Runner可以在Runner之外的wdio.conf.js中获得什么其他值:“本地”?有例子吗?

谢谢

2 个答案:

答案 0 :(得分:0)

好的,从WDIO官方聊天中得知,目前仅支持本地。

答案 1 :(得分:0)

也许这样的例子对我有帮助吗?

exports.config = {
  hostname: "some-test",
  port: 4444,
  path: "/wd/hub",
  specs: ["./tests/*.ts"],
  sync: true,
  services: ["selenium-standalone"],
  capabilities: [
    {
      browserName: "chrome"
    }
  ],
  baseUrl: "http://my-url",
  framework: "mocha",
  mochaOpts: {
    ui: "bdd",
    timeout: 10000
  }
};