由于错误"UNABLE_TO_GET_ISSUER_CERT_LOCALLY",无法启动Selenium服务器



我已经卸载/重新安装了nodejs、量角器、selenium、webdriver manager,但错误仍然存在
-我还应该卸载或更新什么
-有人能提供下一步行动或一些方向来纠正问题吗
-在哪里可以获得本地证书

我的命令:
1。Web驱动程序管理器更新--ignore_ssl--代理http://password@proxy.path.com:8080
2.webdriver managerstart---(错误详细信息如下(

当前全球安装版本:
量角器5.4.3版
webdriver manager 12.1.7
硒独立版可用:3.141.59
chromedriver版本可用:80.0.3987.106
geckodriver版本可使用:v0.26.0

Error: unable to get local issuer certificate  
at TLSSocket.onConnectSecure (_tls_wrap.js:1473:34)  
at TLSSocket.emit (events.js:311:20)  
at TLSSocket._finishInit (_tls_wrap.js:916:8)  
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:686:12) {  
code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'  
}  
[13:56:46] I/start - java -Dwebdriver.gecko.driver=C:UsersUSERNAMEAppDataRoamingnpmnode_modulesprotractornode_moduleswebdriver-managerseleniumgeckodriver-v0.26.0.exe -jar  C:UsersUSERNAMEAppDataRoamingnpmnode_modulesprotractornode_moduleswebdriver-managerseleniumselenium-server-standalone-3.141.59.jar -port 4444  
[13:56:46] I/start - seleniumProcess.pid: 2884    
13:56:46.834 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358  
13:56:46.957 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444  
2020-03-17 13:56:47.035:INFO::main: Logging initialized @513ms to org.seleniumhq.jetty9.util.log.StdErrLog  
13:56:47.373 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet  
13:56:48.375 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444  

您可以从本地项目节点模块运行webdriver-manager update --ignore_ssl吗,可能您的命令正在全局运行,请尝试以下选项,其中任何一个都应该工作

  1. 使用代理运行./node_modules/webdriver-manager update --ignore_ssl --proxy
  2. 在没有代理的情况下运行./node_modules/webdriver-manager update --ignore_ssl

"运行./node_modules/webdriver管理器更新--ignore_ssl--带代理的代理">

我运行了上面的建议,但通过业务代理收到了这个错误消息:

I/http_utils-忽略SSL证书E/downloader-预期响应代码200,收到:403I/update-selenium standalone:文件存在。AppData\Roaming\npm\node_modules\practor\node_modules\webdriver-manager\selenium\selenium-server-standalone-3411.59.jarI/update-硒独立:硒服务器-标准-3.141.59.jar最新(节点:72544(未处理的PromiseRejection警告:错误:响应状态代码不是200

最新更新