Protractor 0.16.1 e2e AngularJS - 启动 selenium 独立服务器... events.js:72 错误:spawn ENOENT [英] Protractor 0.16.1 e2e AngularJS - Starting selenium standalone server... events.js:72 Error: spawn ENOENT

查看:23
本文介绍了Protractor 0.16.1 e2e AngularJS - 启动 selenium 独立服务器... events.js:72 错误:spawn ENOENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试的项目:https://github.com/yearofmoo/angularjs-seed-repo

环境:

Windows 7 64 位
NodeJS v 0.10.24
量角器 v 0.16.1
咕噜声 v0.4.2
grunt-cli v0.1.11

Windows 7 64-bit
NodeJS v 0.10.24
Protractor v 0.16.1
grunt v0.4.2
grunt-cli v0.1.11

注意事项:

根据 [Julie 的帖子][1],对于 selenium,install_selenium_standalone 已在 2013 年 12 月 2 日左右替换为 webdriver-manager 二进制文件.这似乎与问题有关.

For selenium, install_selenium_standalone has been replaced by webdriver-manager binary around 12/2/13 according to [Julie's post][1]. This seems to be related to the issue.

此外,git 必须安装在项目目录中,并且 npm install 必须在 Windows 中使用 Git Bash 运行.

Also, git must be installed in the project directory and npm install must be run using Git Bash in Windows.

Git Bash 中的错误:

Error in Git Bash:

$ grunt test:e2e --debug
运行connect:testserver"(连接)任务
[D] 任务来源:c: odejs-0.10.24 ode_modulesgrunt-contrib-connect asksconnect.js开始连接 127.0.0.1:9999 上的网络服务器.

$ grunt test:e2e --debug
Running "connect:testserver" (connect) task
[D] Task source: c: odejs-0.10.24 ode_modulesgrunt-contrib-connect asksconn ect.js Started connect web server on 127.0.0.1:9999.

运行protractor:singlerun"(量角器)任务
[D] 任务来源:c: odejs-0.10.24 ode_modulesgrunt-protractor-runner asksprotractor_runner.js正在启动 selenium 独立服务器...

Running "protractor:singlerun" (protractor) task
[D] Task source: c: odejs-0.10.24 ode_modulesgrunt-protractor-runner askspr otractor_runner.js Starting selenium standalone server...

events.js:72
     投掷者;//未处理的错误"事件
             ^
错误:生成 ENOENT
      在 errnoException (child_process.js:980:11)
      在 Process.ChildProcess._handle.onexit (child_process.js:771:34)

events.js:72
      throw er; // Unhandled 'error' event
               ^
Error: spawn ENOENT
       at errnoException (child_process.js:980:11)
       at Process.ChildProcess._handle.onexit (child_process.js:771:34)

>致命错误:量角器退出,代码:8

> Fatal error: protractor exited with code: 8

推荐答案

运行selenium需要Java,看来你没有.

Java is required to run selenium, so it seems You don't have any.

这篇关于Protractor 0.16.1 e2e AngularJS - 启动 selenium 独立服务器... events.js:72 错误:spawn ENOENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆