首页 > 解决方案 > args 在 grunt-protractor-runner 中不起作用

问题描述

那里!我尝试使用 chromeOptions 和 args 配置和启动 Gruntfile.js,

        capabilities: {
          browserName: 'chrome',
          shardTestFiles: false,
            chromeOptions: {
              args: [
                "--window-size=414,736"
              ]
          },
        },

我收到错误

E/launcher - invalid argument: cannot parse capability: chromeOptions
from invalid argument: cannot parse args
from invalid argument: must be a list

但是如果我尝试从chromeOptions: {args: [--window-size=414,736]}没有 Gruntfile.js 的 conf.js 开始,它会起作用。

标签: javascriptprotractorwebdriver

解决方案


推荐阅读