Skip to content

Instantly share code, notes, and snippets.

@guylaor
Created November 23, 2016 20:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save guylaor/3eb9e7ff2ac91b7559625262b8a6dd5f to your computer and use it in GitHub Desktop.
Save guylaor/3eb9e7ff2ac91b7559625262b8a6dd5f to your computer and use it in GitHub Desktop.
Installing Selenium with Python 3 on mac
Install python 3
create a virtualenv and then
pip install selenium
then install chrome driver:
brew install chromedriver
to test, run this script - notice the location of the chrome driver
import os
from selenium import webdriver
chromedriver = "/usr/local/bin/chromedriver"
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver)
driver.get("http://dailymotion.com")
# driver.quit()
@adam-rudd-myob
Copy link

If you're getting issues installing the chrome driver via brew, try these commands:

brew tap homebrew/cask

brew cask install chromedriver

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