【发布时间】:2016-08-23 08:33:44
【问题描述】:
我创建了如下的 nightwatch.json 文件(带有用户名和 access_key 属性):
"test_settings": {
"default": {
"launch_url": "http://localhost",
"selenium_port": 4444,
"selenium_host": "localhost",
"silent": true,
"cli_args": {
"webdriver.firefox.profile": "testprofile"
},
"screenshots": {
"enabled": false,
"path": "screenshots/"
},
"desiredCapabilities": {
"browserName": "firefox",
"javascriptEnabled": true,
"acceptSslCerts": true
},
"username": "examplelogin",
"access_key": "password"
}
但是基本身份验证不起作用,我在运行测试后得到登录窗口来填写我的密码和登录。我查看了提琴手中的数据包,但没有授权标头。任何想法我做错了什么?
守夜人 v0.9.6
【问题讨论】:
标签: selenium testing nightwatch.js end-to-end