Protractor does not find chromedriver: The driver executable does not exist:

后端 未结 8 1960
灰色年华
灰色年华 2020-12-19 12:06

I am trying to get Protractor up and running following the official Getting Started Guide.

The command

webdriver-manager start

seem

相关标签:
8条回答
  • 2020-12-19 12:27

    I had a similar problem in my environment (Mac OS X 10.8.5).

    After struggling it for more than an hour, I finally installed the older version (1.4.0) of the protractor and it works very fine.

    npm install -g protractor@1.4.0

    If you would use grunt task grunt-protractor-webdriver, you should use the version 0.1.9 which is working properly in my env. Its 0.2.0 version doesn't work for me. thanks.

    0 讨论(0)
  • 2020-12-19 12:30

    This is happening because of the latest update for chromedriver. If you are using protractor, then a easy way to fix the problem is just run this

    webdriver-manager update

    Its working fine for me now.

    0 讨论(0)
  • 2020-12-19 12:31

    I encountered a problem with not being able to run my protractor tests, after updating MacOSX to el Capitan.

    I was able to solve the problem by re-installing the chromedriver on the system. Try running "sudo npm install chromedriver" from your console. This solved the problem for me.

    0 讨论(0)
  • 2020-12-19 12:33

    I ran into the same issue when building/testing the same tutorial. In the project selenium folder I had chromedriver_2.13.zip, but no chromedriver exec file. I tried unzipping it directly, but no joy.

    So I installed protractor globally using sudo npm install -g protractor, which installs the files at usr/local/lib/node_modules/protractor/selenium/ (on a Mac). In that folder the chromedriver executable did exist, so I copy/pasted into the project selenium folder and now protractor runs as expected using the npm run protractor command from inside the project folder.

    0 讨论(0)
  • 2020-12-19 12:35

    I had the problem on my Mac. I solved it by:

    Downloading the latest chromedriver manually. Copying it to the desired location (protactor/selenium/). Try again - worked

    0 讨论(0)
  • 2020-12-19 12:37

    For Mac users:

    Under the 'angular-phonecat' folder, run npm install chromedriver. This will install the chrome driver into the folder node_modules/chromedriver. After this, you should modify the test/protractor-conf.js, pointing it to the new chromedriver folder, by adding this line:

    chromeDriver:'../node_modules/chromedriver/bin/chromedriver',

    Finally, you will run successfully the command npm run protractor (don't forget that npm start should be run first).

    0 讨论(0)
提交回复
热议问题