title: Windows authentication code no longer working now
body: <p>My below code for windows authentication was working well for over a year. But for the last few days it is longer working now. I am not able to identify exact reason for that. </p>
  
  <pre><code>from selenium import webdriver
  import time
  import win32com.client
  
  driver=webdriver.Chrome('D:/Software/BrowsersDriver/ChromeDriver/chromedriver.exe')
  driver.maximize_window()
  driver.get("authentication windows url")
  shell = win32com.client.Dispatch("WScript.Shell")   
  shell.Sendkeys("username")  
  time.sleep(1)
  shell.Sendkeys("{TAB}")
  time.sleep(1)
  shell.Sendkeys("password") 
  time.sleep(1)
  shell.Sendkeys("{ENTER}")
  time.sleep(5)
  driver.quit()
  </code></pre>
  
  <p>I tried to change my chrome driver to latest when it stops working, but still it is not working. Once the windows authentication appears, cursor keeps blinking on username text-field infinitely, but username is not entered. I am getting below message in console when it is stuck</p>
  
  <pre><code>2018-04-02 07:09:28,230 INFO: Imported existing &lt;module 'comtypes.gen' from 'C:\Python27\lib\site-packages\comtypes\gen\__init__.pyc'&gt;
  2018-04-02 07:09:28,230 INFO: Using writeable comtypes cache directory: 'C:\Python27\lib\site-packages\comtypes\gen'
  </code></pre>
  
  <p>The same code used to work well earlier. I am using python 2.7.12 and latest version of chrome driver. </p>
  
  <p>Also if someone has a different solution or a link for it for providing credentials in authentication window in python selenium then that too will work for me.</p>
  
  <p><strong>Note:</strong> The same code works well earlier, but now it's not working</p>