Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Could not find chromedriver after upgrade to version 1.4.0 of protractor #1495

@ygayl

Description

@ygayl

Hi,

I was working with a 1.3.1 version of protractor with the following configuration :

chromeOnly: true,
chromeDriver: '/usr/local/lib/node_modules/protractor/selenium/chromedriver',

Everything worked well with this one. I needed to upgrade my protractor version to be able to use the new feature allowing to do : element.all(by.css('.foo')).click()

As noticed in the version 1.4.0 changelog the chromeOnly option is deprecated and I have used the directConnect option instead.

But when I run protractor again I got the following error:
Error: Error: Could not find chromedriver at /Users/gayly/Work/Dev/mvp-ng-enrollment-web-client/node_modules/protractor/selenium/chromedriver.exe
at DirectDriverProvider.getDriver (/Users/gayly/Work/Dev/mvp-ng-enrollment-web-client/node_modules/protractor/lib/driverProviders/direct.js:75:17)
at /Users/gayly/Work/Dev/mvp-ng-enrollment-web-client/node_modules/protractor/lib/runner.js:222:41

I have indeed no directory selenium inside of my protractor directory.

Do I have to install it by myself and so define it in the configuration o do I have forgot something?

I have just executed the command npm install protractor@1.4.0 and when execute protractor --version, I get the right one.

Thanks for your answer.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions