我正在尝试在本地Windows开发计算机上启动量角器。为此,我尝试使用以下命令从命令行启动它:
C:\myProject\node_modules\grunt-protractor-runner\node_modules\protractor\bin>webdriver-manager start
运行该命令时,出现错误消息:
'webdriver-manager' is not recognized as an internal or external command,
operable program or batch file.
我确信这是正确的。我正在通过NPM安装量角器。我的package.json文件如下所示:
{
"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"
}
我究竟做错了什么?为什么我不能让量角器运行?谢谢!
webdriver-manager实际上是一个NodeJS脚本。使用运行它
node webdriver-manager start
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句