I'm using the Python bindings for Selenium2 with the Chrome webdriver. I need to access a site that is protected with basic HTTP authentication.
from selenium import webdriver driver = webdriver.Chrome() driver.get('http://username:firstname.lastname@example.org')
I would expect this to work, but it seems that Chrome ignores the username and password given as part of the URL. Chrome will pop the authentication dialog and the script will hang until I manually type in the credentials. Chrome will forget this username and password, so I have to type it in every time I run the script.