how to configure Protractor and Selenium Server?

2019-05-11 19:21发布

问题:

I have install JDK,Protractor and webdriver-manage by following this :

Protractor install tutorial

but when i run this: webdriver-manager start gets in my cmd 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

how can i configure this??

回答1:

  1. Remove previous instance (.jar file) of web driver from the location- C:\Users\HP\AppData\Roaming\npm\node_modules\p rotractor\selenium
  2. Download the selenium-server-standalone-2.45.0 from http://www.seleniumhq.org/download/ and replace the .jar file.