Error starting 'webdriver-manager start' on Windows 8.1

I try to run an end-to-end test for an angular project using a protractor, and I get the following error when I run the command β€œrun webdriver-manager”

enter image description here

I started the webdriver-manager update, and the standalone selenium and chrome recorder were updated.

I have Java installed. java -version returns

enter image description here

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

Does anyone know how to fix this error?

+5
source share
4 answers

You can also run the web driver as shown 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

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

+1
source

I had the same problem. Perhaps the webdriver update that you run installs Selenium files in a different folder that are not inside your project folder. At least that was my business.

I used the grunt task to run Protractor tests. If you use the same plugin, check this folder:

C:\{yourprojectfolder}\node_modules\grunt-protractor-runner\node_modules\protractor\selenium

If you do not find this folder, you get the same problem as me. Try with another bash. You are using cmd, try with Git bash. Find yourself in the following directory:

C:\{yourprojectfolder}\node_modules\grunt-protractor-runner\node_modules\protractor\bin

Then run:

webdriver-manager update

Finally, check the selenium folder inside the Protractor plugin. It must be created now.

I did not have time to find why cmd behaves different from Git Bash when executing the same command inside the same folder. Each installs Selenium files in different places.

0
source

Perhaps you are missing a system variable ( C:\Windows\System32\ variable.). Adding this variable will solve your problem. Hope this helps!

0
source

Add "C: \ Windows \ System32 \" to your PATH. In the windows, right-click "My Computer" β†’ "Properties" β†’ "Advanced System Settings" β†’ "Environment Variables" β†’ "Change" ... "PATH" and add "C: \ Windows \ System32 \" to the end (with separator point separating each variable).

Otherwise, SET PATH =% PATH%; C: \ Windows \ System32

Then run the web driver using the following command

launch webdriver-manager

0
source

Source: https://habr.com/ru/post/1215562/


All Articles