Navigate WebDriver Browser Instance Through HTTP Basic Authentication
WebDriver doesn't have the ability to interact with most things in the browser that fall outside of the DOM. Due to this limitation, HTTP Basic Authentication is a frequent stumbling block. I've often gotten past this by passing in an authorized username & password prepended to the URL.
# uses the Python bindings for Selenium WebDriver
driver = webdriver.Chrome()
driver.get("http://username:password@AuthProtectedURL")
Written by Ryan Blair
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#