Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't update chromedriver in macos10.12.6

I am trying to update chromedriver from 2.30 to 2.35. However, after I brew install chromedriver, the default chromedriver is still 2.30. If I redo brew, it will tell me I have already installed 2.35 version, but when I use chromedriver --version, it still shows 2.30. Can any one tell me why it's that? And can I know where does this brew install?

Thanks!

Output of brew list chromedriver:

/usr/local/Cellar/chromedriver/2.35/bin/chromedriver 
/usr/local/Cellar/chromedriver/2.35/homebrew.mxcl.chromedriv‌​er.plist

and output of which chromedriver shows it's using version 2.30 in other path.

like image 527
Fileland Avatar asked Jan 30 '18 03:01

Fileland


2 Answers

I had the same problem and was able to fix it by:

brew uninstall chromedriver

then I did

brew info chromedriver

which told me to do:

brew tap homebrew/cask
brew cask install chromedriver

It installed chromedriver 2.40

like image 175
Gal Avatar answered Oct 22 '22 00:10

Gal


brew cask reinstall chromedriver

In my case helped just reinstalling chromedriver

Example output:

==> Satisfying dependencies
==> Downloading https://chromedriver.storage.googleapis.com/75.0.3770.90/chromedriver_mac64.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'chromedriver'.
==> Uninstalling Cask chromedriver
==> Unlinking Binary '/usr/local/bin/chromedriver'.
==> Purging files for version 2.45 of Cask chromedriver
==> Installing Cask chromedriver
==> Linking Binary 'chromedriver' to '/usr/local/bin/chromedriver'.
🍺  chromedriver was successfully installed!
like image 8
pbaranski Avatar answered Oct 22 '22 01:10

pbaranski