如何配置 Protractor 和 Selenium 服务器?

how to configure Protractor and Selenium Server?

我已经安装了 JDK、Protractor 和 webdriver-manage,方法如下:

Protractor install tutorial

但是当我 运行 这个:webdriver-manager 启动 进入我的命令 seleniumProcess.

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

我该如何配置?

  1. 从位置 C:\Users\HP\AppData\Roaming\npm\node_modules\p 中删除 Web 驱动程序的先前实例(.jar 文件)rotractor\selenium
  2. http://www.seleniumhq.org/download/ 下载 selenium-server-standalone-2.45.0 并替换 .jar 文件。