title: Can't handle chrome/firefox login popup window
body: <p>I just started working on an automation framework for a <code>asp.net</code> app using <code>selenium webdriver</code> with <code>C#</code>. When I go to the url, a login pop-up is displayed asking for credentials(username, password).</p>
  
  <p>I have been able to handle this on <code>IE</code>, using </p>
  
  <pre><code>driver.Navigate().GoToUrl("http://mywebsite.com");  
  IAlert alert = driver.SwitchTo().Alert();
  alert.SetAuthenticationCredentials(@"ad\username", "password");
  alert.Accept();
  </code></pre>
  
  <p>However, this solution doesn't work for <code>Firefox</code> or <code>Chrome</code>. 
  I also tried </p>
  
  <pre><code>driver.Navigate().GoToUrl("http://mywebsite.com");  
  IAlert alert = driver.SwitchTo().Alert();
  alert.SendKeys(@"ad\username");
  alert.SendKeys(Keys.Tab);
  alert.SendKeys("password");
  alert.Accept();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(5));
  IAlert alert = wait.Until(ExpectedConditions.AlertIsPresent());
  </code></pre>
  
  <p>and this doesn't seem to work either.</p>
  
  <p>Is anyone has any idea of how should I approach this, please let me know.</p>
  
  <p>Thanks.</p>