Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running 'webdriver-manager start' on Windows 8.1

I am attempting to run end-to-end test for an angular project using protractor and am getting the following error when I run the command 'webdriver-manager start'

enter image description here

I have run webdriver-manager update, and selenium standalone and chromedriver are up to date.

I have java installed. java -version returns

enter image description here

I also have the path to java in my system environment variables (C:\Program Files\Java\jre1.8.0_31\bin)

Does anyone have any idea how to fix this error?

like image 684
Ryan Spears Avatar asked Oct 31 '22 08:10

Ryan Spears


1 Answers

You can also start the web driver as below,

java -Dwebdriver.ie.driver=D:\Selenium_download_New\IEDriverServer.exe -jar D:\Selenium_download_New\selenium-server-standalone-2.45.0.jar

java -Dwebdriver.chrome.driver=D:\Selenium_download_New\chromedriver.exe -jar D:\Selenium_download_New\selenium-server-standalone-2.45.0.jar

Note the Standalone.jar should be placed in the exact location as above, you can also download the standalone.jar from selenium website

like image 199
Madhu S N Avatar answered Nov 13 '22 20:11

Madhu S N