Created
November 23, 2016 20:27
-
-
Save guylaor/3eb9e7ff2ac91b7559625262b8a6dd5f to your computer and use it in GitHub Desktop.
Installing Selenium with Python 3 on mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're getting issues installing the chrome driver via brew, try these commands: