【发布时间】:2018-01-02 15:41:29
【问题描述】:
我对 Geckodriver 的nightwatch.js 设置如下:
"firefox": {
"launch_url": "...",
"selenium_port": 4444,
"selenium_host": "localhost",
"silent": true,
...
"desiredCapabilities": {
"browserName": "gecko",
"marionette": true,
"acceptSslCerts": true
}
}
运行时,所有测试都失败,因为我的证书在本地安装和强制 ssl 上进行不安全测试。 Chromedriver(具有基本相同的设置)似乎接受“acceptSslCerts”属性并忽略错误的证书。壁虎司机没有。是配置错误还是 Nightwatch 或 Selenium 的“acceptSslCerts”有问题?
我正在使用最新版本的 Geckodriver 和 Selenium 3.8.1
【问题讨论】:
标签: ssl nightwatch.js