我已经安装了几个版本的node.js和protractor,然后按照说明更新了webdriver,但是我没有想到的任何组合都能成功启动webdriver. 一些有用的细节: 在Ubuntu 64位上 尝试了node.js v0.10.15和v0.10.26 尝试
一些有用的细节:
>在Ubuntu 64位上
>尝试了node.js v0.10.15和v0.10.26
>尝试量角器0.18.1和0.19.0
这是我运行的命令,以及相应的错误(安装量角器后):
$webdriver-manager update Updating selenium standalone downloading https://selenium.googlecode.com/files/selenium-server-standalone-2.39.0.jar... Updating chromedriver downloading https://chromedriver.storage.googleapis.com/2.8/chromedriver_linux64.zip... chromedriver_2.8.zip downloaded to /home/<user>/.nvm/v0.10.26/lib/node_modules/protractor/selenium/chromedriver_2.8.zip selenium-server-standalone-2.39.0.jar downloaded to /home/<user>/.nvm/v0.10.26/lib/node_modules/protractor/selenium/selenium-server-standalone-2.39.0.jar $webdriver-manager start execvp(): No such file or directory seleniumProcess.pid: 4567 events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:988:11) at Process.ChildProcess._handle.onexit (child_process.js:779:34)结果我需要安装Java Development Kit(JDK),然后它工作正常.