量角器0.16.1 e2e AngularJS - 启动selenium独立服务器... events.js:72错误:产生ENOENT

 wsl伊人 发布于 2023-02-04 13:10

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

环境:

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

笔记:

对于selenium,根据[Julie的帖子] [1],install_selenium_standalone已经在12/2/13左右被webdriver-manager二进制替换.这似乎与这个问题有关.

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

Git Bash出错:

$ grunt test:e2e --debug
运行"connect:testserver"(连接)任务
[D]任务源:c:\nodejs-0.10.24 \node_modules\grunt-contrib-connect\tasks\conn ect.js开始连接web服务器在127.0.0.1:9999.

运行"量角器:singlerun"(量角器)任务
[D]任务来源:c:\nodejs-0.10.24 \node_modules\grunt-protractor-runner\tasks\pr otractor_runner.js启动selenium独立服务器...

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

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

小智.. 13

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

1 个回答
  • Java需要运行selenium,所以看起来你没有.

    2023-02-04 13:14 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有