【问题标题】:Webdriver IO Setup behind the cooperate Proxy企业代理背后的 Webdriverio 设置
【发布时间】:2021-08-30 21:51:45
【问题描述】:

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

npx wdio config

得到以下错误。

npm ERR! code 1
npm ERR! path c:\<folder>\node_modules\chromedriver
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.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:\Users\XXX\AppData\Local\Temp\1\92.0.4515.107\chromedriver\chromedriver_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_modules\chromedriver\install.js:265:11)
npm ERR!     at processTicksAndRejections (internal/process/task_queues.js:95:5)
npm ERR!     at async downloadFile (c:\<folder>\node_modules\chromedriver\install.js:109:5)

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

【问题讨论】:

    标签: webdriver-io


    【解决方案1】:

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

    我设置了一个环境变量

    set NODE_TLS_REJECT_UNAUTHORIZED=0
    

    然后再次运行。工作。

    【讨论】:

      猜你喜欢
      • 2012-02-19
      • 2015-12-25
      • 2015-09-20
      • 1970-01-01
      • 2015-11-18
      • 1970-01-01
      • 1970-01-01
      • 2020-02-27
      相关资源
      最近更新 更多