I have recently hit an issue in my tests after chrome updated (to 57.0.2987.133) on my machine and is no longer compatible with the version of chromedriver I have installed (2.25).
I found out I needed to update to 2.28, so after reading some other posts on this subject, I have run the webdriver-manager update command from within the location where protractor is installed on my machine.
C:\Users\me\AppData\Roaming\npm\node_modules\protractor\bin>webdriver-manager update --versions.chrome 2.28 --ignore_ssl
If I then look under the selenium folder at this location:
C:\Users\me\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium
I can see chromedriver_2.28.exe listed but when I attempt to run my tests, webdriver tries to load 2.25:
[16:19:35] I/direct - Using ChromeDriver directly... [16:19:35] I/launcher - Running 1 instances of WebDriver [16:19:35] E/direct - Error code: 135 [16:19:35] E/direct - Error message: Could not find chromedriver at C:\Users\me\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager selenium\chromedriver_2.25.exe
I'm unsure why it's not trying to use the 2.28 version that I have installed.
Any ideas?
ChromeOptions
class? – Brianwebdriver-manager
to grab the latest version of binaries by default. I had an issue where I typedwebdriver-manager status
, it would saychromedriver version available: 2.26 [default], 2.28
, which was annoying. – Gundersonwebdriver-manager start --versions.chrome=2.28
(or might bechromedriver
instead ofchrome
); – Gunderson