title: http authorization with webdriver and popup window
body: <p>I'm trying to use <a href="http://seleniumhq.org/projects/webdriver/" rel="nofollow">Selenium WebDriver</a> to automatically login in to a site with a user-name and password. I've done my research and I don't believe this feature is supported by WebDriver, so I need to find another way. The site I'm trying to automate logging into is located <a href="https://portal.adp.com/public/index.htm" rel="nofollow">here</a>.</p>
  
  <p>When prompted to login a popup window comes up that doesn't seem to be part of the browser. I'm using Firefox and Chrome. It seems Windows API may be required? I already tried passing the credentials in the URL but that didn't work.  Also tried sendkeys, but received a Windows exception that the application was not accepting Windows messages. I also tried switching the current <code>handle</code> using <code>driver.windowhandles</code> but the popup doesn't seem to be a new handle.</p>
  
  <p>Does anybody have any ideas? I'm kinda stuck. The preliminary code to get to the popup window is:</p>
  
  <pre><code>IWebDriver driver = new FirefoxDriver();
  driver.Navigate().GoToUrl("http://www.portal.adp.com");
  string currentWindow = driver.CurrentWindowHandle;
  IWebElement userLogin = driver.FindElement(By.Id("employee"));
  userLogin.Click();
  </code></pre>