Reputation: 351
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.chromedriver.plist
and output of which chromedriver
shows it's using version 2.30 in other path.
Upvotes: 17
Views: 21930
Reputation: 71
Install or reinstall it using:
brew cask install chromedriver
When you need to update it, use:
brew cask upgrade chromedriver
For newr versions of MacOs and brew:
brew upgrade chromedriver --cask
Upvotes: 6
Reputation: 5528
The new version of the command to upgrade chromedriver is the following:
brew upgrade --cask chromedriver
If you receive the error:
“chromedriver” cannot be opened because the developer cannot be verified.
You need to put it outside the quarantine with:
xattr -r -d com.apple.quarantine /usr/local/bin/chromedriver
Upvotes: 2
Reputation: 24962
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!
Upvotes: 8
Reputation: 81
Fileland :perform below steps please
chromdriver --version
.Upvotes: 3
Reputation: 5907
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
Upvotes: 30
Reputation: 56
Add that location to the PATH variable by adding the following line to your .bash_profile file:
export PATH="/Users/location/of/chromedriver:$PATH"
Upvotes: 0