合作代理后面的Webdriver IO设置



我确实安装了WebDriver IO v7.11。但是当我试图配置

npx wdio config

得到以下错误。

npm ERR! code 1
npm ERR! path c:<folder>node_moduleschromedriver
npm ERR! command failed
npm ERR! command C:WINDOWSsystem32cmd.exe /d /s /c node install.js
npm ERR! Current existing ChromeDriver binary is unavailable, proceeding with download and extraction.
npm ERR! Downloading from file:  https://chromedriver.storage.googleapis.com/92.0.4515.107/chromedriver_win32.zip
npm ERR! Saving to file: C:UsersXXXAppDataLocalTemp192.0.4515.107chromedriverchromedriver_win32.zip
npm ERR! Using workaround for https-url combined with a proxy.
npm ERR! ChromeDriver installation failed Error: Error with http(s) request: Error: unable to get local issuer certificate
npm ERR!     at requestBinary (c:<folder>node_moduleschromedriverinstall.js:265:11)
npm ERR!     at processTicksAndRejections (internal/process/task_queues.js:95:5)
npm ERR!     at async downloadFile (c:<folder>node_moduleschromedriverinstall.js:109:5)

在合作代理之外可以正常工作。任何想法

我能够解决这个问题。我希望这对其他人有帮助。

设置env变量

set NODE_TLS_REJECT_UNAUTHORIZED=0

并再次运行。工作。

最新更新