Protractor webdriver-manager chromedriver update

Maccurt picture Maccurt · Oct 3, 2016 · Viewed 51.9k times · Source

There seems to be a issue with chromedriver 2.2 and the newest version of Chrome. This issue has to deal with the protractor not being able to send tab keys with 2.2. If I do webdriver-manager update, it does not update to the chromedriver 2.4. I did a hack where I downloaded chromedriver 2.4 exe myself and manually put it in the selenium folder, but that is not the best way to do this. How do you update protractor to use the latest version of Chromedriver 2.4?

Answer

Jlearner picture Jlearner · Oct 29, 2016

To update protractor version globally and webdriver-manager run below commands in console.

npm update protractor -g

webdriver-manager update

If still the latest protractor is not having the latest chromedriver then to update it manually follow these below steps

enter latest chromedriver version in file config.json this file is present under path '/node_modules/protractor/node_modules/webdriver-manager/built'

optional (and change 'mac32' to 'mac64' in file 'chrome_driver.js' which is present under path /webdriver-manager/built/lib/binaries)

run webdriver-manager update in the console.

hint: To get the path of 'webdriver-manager' folder observe the console after command webdriver-manager update