Skip to content

Instantly share code, notes, and snippets.

@letiesperon
Created February 7, 2022 21:45
Show Gist options
  • Save letiesperon/c8ebfa7a224540beaa450d600b2e53ab to your computer and use it in GitHub Desktop.
Save letiesperon/c8ebfa7a224540beaa450d600b2e53ab to your computer and use it in GitHub Desktop.
Fixing chromedriver

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment