无法使用量角器webdriver

编程入门 行业动态 更新时间:2024-10-26 10:30:05
本文介绍了无法使用量角器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

本文发布于:2023-11-23 03:34:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619932.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:量角器   webdriver

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!