Nightwatchjs:如何解决从selenium服务器检索新会话时出错?

时间:2018-03-01 05:04:52

标签: windows nightwatch.js

这是我配置的一部分:

"selenium": {
        "start_process": true, // tells nightwatch to start/stop the selenium process
        "server_path": "./selenium-server-standalone-3.8.1.jar",
        "host": "127.0.0.1",
        "port": 4444, // standard selenium port
        "cli_args": {
            "webdriver.chrome.driver": "./chromedriver_win32/chromedriver.exe"
        }
    },

test_settings" : {
    "default" : {
      "use_ssl": true,
      "credentials": {
        "username": "admin",
        "key": "secret"
      },

测试运行正常,直到我插入use_ssl。现在我收到了这个错误:

从selenium服务器检索新会话时出错

连接被拒绝了! selenium服务器是否已启动?

{ Error: write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:797:

    at exports._errnoException (util.js:1020:11)
    at WriteWrap.afterWrite (net.js:800:14) code: 'EPROTO', errno: 'EPROTO', syscall: 'write' }

我正在尝试测试需要Windows身份验证的页面。

0 个答案:

没有答案