Skip to content

Instantly share code, notes, and snippets.

Last active February 16, 2023 23:19
  • Star 12 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save duhaime/ab62295f6aedb9c2300471afd5ae7ef9 to your computer and use it in GitHub Desktop.
Python Selenium Headless Chrome OSX
from selenium import webdriver
from import Options
chrome_options = Options()
chrome_options.binary_location = '/Applications/Google Chrome'
driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver', chrome_options=chrome_options)
Copy link

Thank You so much, this is amazing. I needed this so much

Copy link

Thank you!

Copy link

I'm sure you are using Keys somewhere, but not in this example..

Copy link

duhaime commented Mar 31, 2021

haha you're right! I removed the unneeded line :)

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