如何配置量角器和Selenium Server? [英] how to configure Protractor and Selenium Server?
本文介绍了如何配置量角器和Selenium Server?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经按照以下步骤安装了JDK,Protractor和webdriver-manage:
I have install JDK,Protractor and webdriver-manage by following this :
但是当我运行此命令时:webdriver-manager start 进入我的cmd seleniumProcess.
but when i run this: webdriver-manager start gets in my cmd seleniumProcess.
pid:4648错误:jarfile无效或损坏 C:\ Users \ HP \ AppData \ Roaming \ npm \ node_modules \ p rotractor \ selenium \ selenium-server-standalone-2.45.0.jar Selenium 独立版本已退出,代码为1
pid: 4648 Error: Invalid or corrupt jarfile C:\Users\HP\AppData\Roaming\npm\node_modules\p rotractor\selenium\selenium-server-standalone-2.45.0.jar Selenium Standalone has exited with code 1
我该如何配置?
推荐答案
- 从以下位置删除Web驱动程序的先前实例(.jar文件):C:\ Users \ HP \ AppData \ Roaming \ npm \ node_modules \ ptractor \ selenium
- 从 http://www.seleniumhq.org/download下载selenium-server-standalone-2.45.0/ 并替换.jar文件.
- Remove previous instance (.jar file) of web driver from the location- C:\Users\HP\AppData\Roaming\npm\node_modules\p rotractor\selenium
- Download the selenium-server-standalone-2.45.0 from http://www.seleniumhq.org/download/ and replace the .jar file.
这篇关于如何配置量角器和Selenium Server?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文