如何运行量角器? [英] How to run protractor?
问题描述
我对量角器很陌生.我在 Windows 命令行中运行它.
I'm very new to protractor. I am running this in Windows command line.
我遵循了本教程 https://github.com/angular/protractor/blob/master/docs/getting-started.md
我成功运行了 npm install -g protractor
我不知道如何运行这个node_modules/protractor/bin/install_selenium_standalone
如果我直接在命令行中运行它.我收到此错误 'node_modules\protractor\bin\install_selenium_standalone' 未被识别为内部或外部命令、可运行的程序或批处理文件.
If I run this straight away in command line. I am getting this error 'node_modules\protractor\bin\install_selenium_standalone' is not recognized as an internal or external command, operable program or batch file.
帮助我成功运行此程序.以及这个命令 ./selenium/start
Help me to run this sucessfully. As well as this command ./selenium/start
我正在等待及时的回复......
I am waiting for the prompt response......
推荐答案
selenium 独立服务器的另一种解决方案是使用量角器提供给我们的二进制文件:
An alternate solution to the selenium standalone server is to use the binary that protractor gives us:
$ ./node_modules/protractor/bin/webdriver-manager update
这将使用 selenium 下载文件并制作启动脚本
This will download the files with selenium and make a start script
$ ./node_modules/protractor/bin/webdriver-manager start
这将启动独立服务器.
一篇关于 Protractor 设置和使用的精彩文章:
A great article for Protractor setup and use:
http://www.ng-newsletter.com/posts/practical-量角器.html
这篇关于如何运行量角器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!