问题描述
我有我的量角器,直到前几天,当我开始遇到运行:
I had my protractor running untill few days ago when i started encountering:
Using the selenium server at http://localhost:4444/wd/hub
**** UNCAUGHT EXCEPTION ****
Error: connect ECONNREFUSED
at exports._errnoException (util.js:682:11)
at Object.afterConnect [as oncomplete] (net.js:947:19)
****************************
**** UNCAUGHT EXCEPTION ****
Error: socket hang up
at createHangUpError (_http_client.js:182:15)
at Socket.socketCloseListener (_http_client.js:214:23)
at Socket.EventEmitter.emit (events.js:120:20)
at TCP.close (net.js:459:12)
****************************
使用我的自定义回调方法e.message打印进一步深挖:
on further digging using my custom callback method e.message printed:
Error:: webdriver is not defined
/home/workspace/desktop/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1702
throw error;
^
ReferenceError: webdriver is not defined
我尝试使用NPM安装硒的webdriver硒安装驱动程序的网络,但这并没有帮助,也试过NPM安装量角器,但似乎没有在这里工作。
I tried installing selenium web driver using npm install selenium-webdriver but this did not help, also tried npm install for protractor but nothing seems to work here
在这方面的任何帮助都非常AP preciated。
Any help in this regard is highly appreciated.
-Vaibhav
推荐答案
我已经找到了解决方案,但它不是很信服的理由。我的节点版本是最新的,当我切换到节点版v0.10.26端到端量角器测试用例开始工作了。
I have found the solution to it however not very convinced about the reasoning. My node version was latest and when I switched to node version v0.10.26 the e2e protractor test cases started working again.
这篇关于量角器端到端投掷的webdriver没有定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!