本文介绍了无法使用量角器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\node_modules\grunt-protractor-runner\node_modules\protractor\bin>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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!