title: Handling 'choose a digital certificate' with selenium webdriver chrome
body: <p>When I open a page with selenium webdriver I get a chrome dialog box "Choose certificate". The default certificate is the right one so I only have to click OK button. But I have problem with this. I have python code:</p>
  
  <pre><code>drv = webdriver.Chrome()   
  drv.get("https://example.com/login")
  </code></pre>
  
  <p>and after that I want to do something like:</p>
  
  <pre><code>drv.switch_to_alert().accept()
  </code></pre>
  
  <p>or</p>
  
  <pre><code>drv.switch_to_alert().send_keys(Keys.TAB)
  drv.switch_to_alert().send_keys(Keys.SPACE)
  </code></pre>
  
  <p>The problem is that the code stops executing on line drv.get("<a href="https://example.com/login" rel="noreferrer">https://example.com/login</a>"). Webdriver is waiting for page to load. And before that line there is no chrome dialog box.</p>
  
  <p>How can I handle this?</p>