无法使用量角器 webdriver-manager [英] Unable to use Protractor webdriver-manager

查看:17
本文介绍了无法使用量角器 webdriver-manager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在本地 Windows 开发机器上启动量角器.为了尝试这样做,我尝试使用以下命令从命令行启动它:

I am trying to start protractor on my local Windows development machine. In an attempt to do so, I am trying to start it from the command-line using the following command:

C:myProject
ode_modulesgrunt-protractor-runner
ode_modulesprotractorin>webdriver-manager start

当该命令运行时,我收到一条错误消息:

When that command is run, I get an error that says:

'webdriver-manager' is not recognized as an internal or external command,
operable program or batch file.

我相信这是正确的.我正在通过 NPM 安装量角器.我的 package.json 文件如下所示:

I was confident this was correct though. I'm installing protractor via NPM. My package.json file looks like this:

{
  "name": "MyProject",
  "version": "0.0.1",
  "description": "Just the description",
  "repository": "N/A",
  "readme":"N/A",
  "private": true,
  "scripts": {
    "test": "echo "Error: no test specified" && exit 1"
  },
  "author": "",
  "devDependencies": {
    "grunt-contrib-clean": "~0.5.0",
    "grunt-contrib-concat": "0.4.0",
    "grunt-contrib-connect": "0.7.1",
    "grunt-contrib-copy": "~0.4.1",
    "grunt-contrib-cssmin": "~0.6.1",
    "grunt-contrib-htmlmin": "~0.1.3",   
    "grunt-contrib-jshint": "0.9.2",
    "grunt-contrib-uglify": "~0.2.4",
    "grunt-contrib-watch": "0.5.x",
    "grunt-protractor-runner": "0.2.4",
    "grunt-start-webdriver":"0.0.2",
    "phantomjs": "1.9.7-3",
    "selenium-webdriver":"2.41.0",
    "load-grunt-tasks": "0.2.x",
  },
  "license": "none"
}

我做错了什么?为什么我不能让量角器运行?谢谢!

What am I doing wrong? Why can't I get protractor to run? Thank you!

推荐答案

webdriver-manager 实际上是一个NodeJS 脚本.使用

webdriver-manager is actually a NodeJS script. Run it using

node webdriver-manager start

这篇关于无法使用量角器 webdriver-manager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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