title: How to click OK on a dialog box with Selenium?
body: <p>I wrote a script to log on to a web page.  Before even showing the page Chrome asks me to choose a certificate.  How do I press the OK button?</p>
  
  <p><img src="https://i.stack.imgur.com/IS87o.png" alt="enter image description here"></p>
  
  <p>Here is what I have so far...</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  driver = webdriver.Chrome()
  driver.get("https://blah.blah.com")
  </code></pre>
  
  <p>However, the last line does not finish until I (manually) click the button.  There is only one certificate.  How do I click <strong>OK</strong> programmatically?</p>
  
  <p><img src="https://i.stack.imgur.com/qqf7A.png" alt="enter image description here"></p>