我正在尝试在基于云的浏览器测试服务上运行我们的Nightwatch测试套件。现在,我将在本地机器上运行Nightwatch,指定selenium_port
和selenium_host
等测试设置,以连接到云服务系统上的selenium。测试发送登录到被测系统的密码,所以我不希望这件事以明文形式在互联网上传播。
我在Nightwatch docs中没有看到任何像selenium_protocol
或selenium_scheme
(http或https)这样的东西。
相比之下,WebdriverIO有一个protocol
配置属性,对于我们的WebdriverIO测试,我已经将该属性设置为"https"
。
有没有办法让Nightwatch通过https与selenium服务器通信?
发布于 2018-01-26 01:09:51
可以在选项中将use_ssl
设置为true
,将selenium_port
设置为443
。
例如:
"test_settings" : {
"default": {
"launch_url" : "https://yoururl.com",
"selenium_host" : "hub-cloud.browserstack.com",
"selenium_port" : 443,
"use_ssl": true
}
}
(我只是不得不做同样的事情,而且看起来没有文档记录)
以下是源代码:
https://stackoverflow.com/questions/47934120
复制相似问题