macosselenium-chromedriverhomebrew

How to update chromedriver to the latest version on MacOS using homebrew?


My current version is 81.0.4044.69 and I want to update to the latest version 83.0.4103.39

When I open Terminal and I do: brew cask install chromedriver

It says: Warning: Cask 'chromedriver' is already installed.

How can I update to the latest version 83.0.4103.39?


Solution

  • UPDATE: Now you can also do:

    brew update
    brew upgrade chromedriver
    

    or

    brew update
    brew upgrade --cask chromedriver
    

    Also be aware that after each upgrade you will get again a system warning when using the chromedriver for the first time so you need to click Cancel in the warning and then go to "Preferences => Privacy & Security" => Security and click "Allow Anyway" to accept the risk. Then on the next run, you'll have to click "Open" once.