javascript - 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 开始,它会起作用。
解决方案
推荐阅读
- python - 如何基于 Perl 示例正确访问 Python 中的 SQL 数据库?
- python - 如何从两个 for 循环中的两个打印语句在同一行打印内容
- typescript - 如何使用 AWS Lambda for Firehose 和 CDK 启用转换源记录
- kubernetes - 如何找到 Helm 的关联服务帐户?
- sql-server - 将 Git 日志加/减号更改为任何自定义?
- selenium-webdriver - Protractor-getText() 在 async/await 中显示错误
- javascript - 如果条件不满足,如何从正文中删除类?
- reactjs - 如何使用 url GET 参数中的密钥设置 AWS 放大公共 API?
- python - 在python中聚合n行数据帧的随机子集
- asp.net-core-3.0 - ToLocalTime 的时区是否有变化