【问题标题】:Nightwatch vs. self signed certificatesNightwatch 与自签名证书
【发布时间】: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


    【解决方案1】:

    firefox 驱动程序的正确功能似乎是acceptInsecureCerts

    您可以看到它列出了here

    【讨论】:

      猜你喜欢
      • 2020-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-04
      • 1970-01-01
      • 2012-11-01
      • 2017-03-15
      相关资源
      最近更新 更多