Skip to content

Instantly share code, notes, and snippets.

@jrdmcgr
Last active January 23, 2016 20:29
Show Gist options
  • Save jrdmcgr/5204459 to your computer and use it in GitHub Desktop.
Save jrdmcgr/5204459 to your computer and use it in GitHub Desktop.

This now works with the latest Selenium bindings. (pip install selenium)

from selenium import webdriver
driver = webdriver.Firefox() # or webdriver.Chrome()
driver.get('http://user:password@example.com')

The eqivalent with Splinter doesn't work.

from splinter import Browser
browser = Browser()
browser.visit('http://user:password@example.com')

This will raise a 401 HttpResponseError

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