Whenever selenium tests are not working anymore do this:
brew reinstall chromedriver
If I then get a:
"chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser
then, find chromedriver binary path:
which chromedriver
which will result in something like this: /usr/local/bin/chromedriver
and then run this to tell Mac OS to trust this binary:
xattr -d com.apple.quarantine /usr/local/bin/chromedriver
Sometimes after that I still have to go to Security & Privacy
and there will be a warning there that will prompt me to Allow chromedriver.