Skip to content

Instantly share code, notes, and snippets.

@simudream
Forked from jrdmcgr/selenium-vs-splinter.md
Created January 23, 2016 20:29
Show Gist options
  • Save simudream/024ade85ad842d83df54 to your computer and use it in GitHub Desktop.
Save simudream/024ade85ad842d83df54 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