webdriver manager更新抛出未处理的错误

时间:2017-06-20 15:06:21

标签: selenium-webdriver webdriver protractor

我正在使用量角器和webdriver,当尝试在webdriver管理器上进行更新时,我得到以下错误。

>     webdriver-manager update events.js:160
>       throw er; // Unhandled 'error' event
>       ^
> 
> Error: tunneling socket could not be established, statusCode=407
>     at ClientRequest.onConnect (\\hermes\vhd_profiles\VDI_Home_VHD1\modisej\AppData\Roaming\npm\node_modules\protractor\node_modules\tunnel-agent\index.js:166:19)
>     at ClientRequest.g (events.js:292:16)
>     at emitThree (events.js:116:13)
>     at ClientRequest.emit (events.js:194:7)
>     at Socket.socketOnData (_http_client.js:394:11)
>     at emitOne (events.js:96:13)
>     at Socket.emit (events.js:188:7)
>     at readableAddChunk (_stream_readable.js:176:18)
>     at Socket.Readable.push (_stream_readable.js:134:10)
>     at TCP.onread (net.js:551:20)

当我使用webdriver-manager状态检查当前可用驱动程序列表时,我得到以下内容。

    $ webdriver-manager status
    I/status - selenium standalone is not present
    I/status - chromedriver is not present
    I/status - geckodriver is not present
    I/status - IEDriverServer is not present
    I/status - android-sdk is not present
    I/status - appium is not present

但在查找webdriver-manager版本时请参阅以下内容:

webdriver-manager version
I/version - webdriver-manager 12.0.6

节点版本:7.2.1  量角器版本:5.1.2  Webdriver版本:12.0.6

4 个答案:

答案 0 :(得分:3)

webdriver-manager update --proxy = http://proxy:88

这解决了我的问题。

答案 1 :(得分:1)

设法通过运行命令

来解决这个问题
webdriver-manager update --proxy="proxy address":8080/

答案 2 :(得分:1)

尝试一下

webdriver-manager update --proxy="http://username:pass@yourproxyserver:port/" --ignore_ssl

使用此命令为我工作。

更新

使用Chrome版本

webdriver-manager update --versions.chrome 77.0.3865.90 --proxy="http://username:pass@yourproxyserver:port/" --ignore_ssl

答案 3 :(得分:0)

运行命令 webdriver-manager更新--proxy = http://proxy:88

[16:55:30] I / config_source-curl -o / usr / local / lib / node_modules / protractor / node_modules / webdriver-manager / selenium / gecko-response.json'http://proxy:88/repos/mozilla/geckodriver/releases'-H '主机:api.github.com' events.js:174       投掷者//未处理的“错误”事件       ^

错误:连接ETIMEDOUT 198.105.254.104:88