title: How to Submit Https authentication with Selenium in python
body: <p>I want to access with <strong>Selenium</strong> (through) Python, a URL that demands authentication.</p>
  
  <p>When visit the URL, manually a new authentication window pops up, on which I need to fill in a <em>username</em> and <em>password</em>. Only after clicking on “OK” this window disappears and I return to the original site.</p>
  
  <p>As I want to visit this URL on an interval base to download information and want to automatize this process in python.</p>
  
  <p>In my current effort I use <strong>Selenium</strong>, but none of the examples that I found seem to do what I need. Thinks I tried but do not work are:</p>
  
  <ul>
  <li><code>driver.get("https://username:password@somewebsite.com/")</code></li>
  <li><code>selenium.FireEvent("OK", "click")</code></li>
  <li><code>driver.find_element_by_id("UserName")</code></li>
  </ul>
  
  <p>I do not know the actual element id’s</p>
  
  <p>What I did manage is to load my Firefox profile that stores the authentication information, but I still need to confirm the authentication by clicking “ok”.</p>
  
  <p>Is there any way to prevent this screen to pop up? </p>
  
  <p>If not how to access this button on the authentication form, from which I cannot obtain id-information?</p>