Windows 10 - IE 11 Windows Secruity Popup - AutoIT returns no control information
<p>I am updating a C# Test Framework that uses Selenium webdriver for browser testings.  Upon starting each testcase, I need to bypass the Windows Secruity Popup (IE11 : v11.187.14393.0) in order to get onto the development site i am testing. I have had this working previously using AutoIt with the following code. </p>

<pre><code>      AutoItX3 autoIt = new AutoItX3();
      string windowTitle = "Windows Security";

      // Wait 30 seconds max...
      autoIt.WinWait(windowTitle, string.Empty, 30);

      // Need to wait for input fields to load...
      Thread.Sleep(2000);

      autoIt.WinActivate(windowTitle);
      autoIt.ControlSetText(windowTitle, string.Empty, "[CLASS:Edit; INSTANCE:1]", username);
      autoIt.ControlSetText(windowTitle, string.Empty, "[CLASS:Edit; INSTANCE:2]", password);
      autoIt.ControlClick(windowTitle, "OK", "[CLASS:Button; INSTANCE:2]");
      autoIt.WinWaitClose(windowTitle, string.Empty, 10);
</code></pre>

<p>I have since updated my OS to windows 10 and the popup box has since changed (See below)</p>

<p><a href="http://i.stack.imgur.com/rHDPh.png" rel="nofollow">See new security popup example</a></p>

<p><a href="http://www.enhanceie.com/images/blog/CredUIHTTPAuth.png" rel="nofollow">See old secruity popup example</a></p>

<p>The AutoIt inspector no longer returns any control information for any object within the secruity popup window, so i am unable to interact with them. (See below what he inspector returns for the username inputbox)</p>

<blockquote>
  <blockquote>
    <blockquote>
      <blockquote>
        <p>Window &lt;&lt;&lt;&lt;
        Title:  Windows Security
        Class:  Credential Dialog Xaml Host
        Position:   732, 354
        Size:   456, 386
        Style:  0x96C80000
        ExStyle:    0x00200100
        Handle: 0x00000000015B1204</p>
        
        <p>Control &lt;&lt;&lt;&lt;
        Class:<br>
        Instance:<br>
        ClassnameNN:<br>
        Name:<br>
        Advanced (Class):<br>
        ID: 
        Text:<br>
        Position:<br>
        Size:<br>
        ControlClick Coords:<br>
        Style:<br>
        ExStyle:<br>
        Handle: </p>
        
        <p>Mouse &lt;&lt;&lt;&lt;
        Position:   816, 548
        Cursor ID:  0
        Color:  0xF0F0F0</p>
        
        <p>StatusBar &lt;&lt;&lt;&lt;</p>
        
        <p>ToolsBar &lt;&lt;&lt;&lt;</p>
        
        <p>Visible Text &lt;&lt;&lt;&lt;</p>
        
        <p>Hidden Text &lt;&lt;&lt;&lt;</p>
      </blockquote>
    </blockquote>
  </blockquote>
</blockquote>

<p>I have tried to point AutoIt at the active window and send keys directly but this isnt working either. (See below code).</p>

<pre><code>        string windowTitle = "Windows Security";

        // Wait 30 seconds max...
        autoIt.WinWait(windowTitle, string.Empty, 30);

        // Need to wait for input fields to load...
        Thread.Sleep(2000);

        autoIt.WinActivate(windowTitle);
        autoIt.Send(username);
        autoIt.Send(Keys.Tab.ToString());
        autoIt.Send(password);
        autoIt.Send(Keys.Enter.ToString());
        autoIt.WinWaitClose(windowTitle, string.Empty, 10);
</code></pre>

<p>Does anyone have any ideas how I can get past this?</p>

<p>Thanks</p>