title: python selenium can't handle Alert-popup that has two text inputs
body: <p>I'm trying to automate my login process to my home router and I want to enter the username and the password into an alert message, unfortunately, I can't do it</p>
  
  <p>after doing some research I found that I can accept the alert using</p>
  
  <p><code>alert = driver.switch_to.alert alert.accept()</code></p>
  
  <p>and sending keys into the web
  using method called <code>send_keys()</code></p>
  
  <p>but the problem that i have two textboxes instead of one </p>
  
  <pre class="lang-py prettyprint-override"><code>from selenium import webdriver
  
  driver = webdriver.Chrome()
  driver.get("192.168.1.1")
  
  #note i have both textboxes in the same alert
  #and the alert popup once I request the page
  
  alert = driver.switch_to.alert
  
  alert.send_keys('admin')
  alert.send_keys('admin')
  alert.accept()
  
  </code></pre>