Skip to content

Instantly share code, notes, and snippets.

@byk0t
Last active April 17, 2021 14:12
Show Gist options
  • Save byk0t/b9c37c63c1205a3e347b3eadff4bb705 to your computer and use it in GitHub Desktop.
Save byk0t/b9c37c63c1205a3e347b3eadff4bb705 to your computer and use it in GitHub Desktop.
Using chromedriver binary in Selenium on MacOS
  1. Download the driver from https://chromedriver.chromium.org/downloads
  2. Unzip it somewhere and you get a binary named chromedriver
  3. Make this file trusted by MacOS: xattr -d com.apple.quarantine chromedrive
  4. You can test the result with the next python snippet:
    from selenium import webdriver
    driver = webdriver.Chrome('chromedriver')
    driver.get('http://google.com')```
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment