Macaca 执行示例脚本出项:Error: chromedriver proxy error with: Error: connect ECONNREFUSED 127.0.0.1:9515

ping · 2017年07月17日 · 最后由 测试 回复于 2017年09月01日 · 1874 次阅读

proxy.js:51:14 [master] pid:2916 Proxy: /session:POST to http://localhost:9515/wd/hub/session:POST with body: {"desiredCapabilities":{"browserName":"Chrome","platformName":"Desktop"}}
Error: chromedriver proxy error with: Error: connect ECONNREFUSED 127.0.0.1:9515
at Request.request as _callback
at self.callback (D:\macaca\application\nodejs\node_global\node_modules\macaca-chrome\node_modules_request@2.69.0@request\request.js:199:22)
at emitOne (events.js:115:13)
at Request.emit (events.js:210:7)
at Request.onRequestError (D:\macaca\application\nodejs\node_global\node_modules\macaca-chrome\node_modules_request@2.69.0@request\request.js:821:8)
at emitOne (events.js:115:13)
at ClientRequest.emit (events.js:210:7)
at Socket.socketErrorListener (_http_client.js:400:9)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)

共收到 1 条回复 时间 点赞

Chrome 版本比较高,驱动不兼容。可以到 chromedriver 官网下载最新驱动,替换成功解决该问题

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册