我对量角器使用以下配置:
"protractor": "^5.4.2",
"should": "^7.1.1",
"webdriver-manager": "^12.1.1",
"webpack": "^1.12.6"
[11:06:02] I/status - selenium standalone version available: 3.141.59 [last]
[11:06:02] I/status - chromedriver versions available: 2.45, 2.46 [last]
[11:06:02] I/status - geckodriver versions available: v0.13.0, v0.17.0 [last], v0.21.0, v0.24.0
[11:06:02] I/status - android-sdk is not present
[11:06:02] I/status - appium is not present
config file
答案1
我按照建议解决了这个问题https://stackoverflow.com/questions/47770336/protractor-invalid-ssl-certificate:添加acceptInsecureCerts: true
到protractor.conf.js
阻止capabilities
。
如果这没有帮助,您可以通过添加行来调试问题
console.log("parsed:", parsed);
到/home/Development/lrp-protractor/node_modules/selenium-webdriver/lib/http.js
509 行之前或附近。