How can I install a specific version of webdriver-manager?


#1

Is there a way to install a specific version of webdriver-manager?
The reason behind this is that since yesterday Protractor specs are failing although it is working fine locally.
Here is what I’m getting:

[launcher] Process exited with error code 1
undefined:1190
    vlog(2, () => this + ' scheduling notifications', this);

This answer suggested to install an older version to solve the problem, though I’m not sure how to do it in the circle.yml file. I tried to do this:

- npm install -g protractor
- npm install -g selenium-webdriver@2.47.0

but it doesn’t seem to be working.


#2

What kind of error does the npm install -g selenium-webdriver@2.47.0 command result in?


#3

No error, it looks like it got installed correctly, but when CricleCI runs Protractor conf.js I still get the error.


#4

Is there any way to double-check that the older version is actually picked up after the npm install -g commands? From what I’ve seen, the node_modules directory inside the project dir can still have priority sometimes during the $PATH lookup.


#5

This fixed it

- npm install -g protractor@2.5.1

#6

Excellent, thank you for sharing this!


#7