title: selenium chrome driver select certificate popup confirmation not working
body: <p>I am automating tests using selenium chromewebdriver 3.7. Whenever I lauch the site, I get a certificate selection popup like the one below<a href="https://i.stack.imgur.com/uPIGO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uPIGO.png" alt="enter image description here"></a> </p>
  
  <p>However I am not able to click on the OK button. These are the options I have tried</p>
  
  <pre><code> //I have tried getWindowHandle like this  
   String  handle= driver.getWindowHandle();
          this.driver.switchTo().window(handle);
  </code></pre>
  
  <hr>
  
  <pre><code>//I have alos tried switching and accept
   driver.switchTo().alert().accept();
  </code></pre>
  
  <hr>
  
  <pre><code>//I have also tried to force the enter key like this
   robot.keyPress(KeyEvent.VK_ENTER);
   robot.keyRelease(KeyEvent.VK_ENTER);
  </code></pre>
  
  <hr>
  
  <pre><code> // I also tried this way
   Scanner keyboard = new Scanner(System.in);
   keyboard.nextLine();
  </code></pre>
  
  <p>All my trials have failed. How can I click on OK on this popup window?
  This is the closest solution I found which is not working <a href="https://github.com/SeleniumHQ/selenium/issues/5408" rel="noreferrer">Link here</a></p>