title: How to handle authentication popup with Selenium WebDriver using Java
body: <p>I'm trying to handle authentication popup using the code below:</p>
  
  <pre><code>FirefoxProfile profile = new FirefoxProfile();
  profile.setPreference("network.http.phishy-userpass-length", 255);
  profile.setPreference("network.automatic-ntlm-auth.trusted-uris", "x.x.x.x");
  driver = new FirefoxDriver(profile);
  baseUrl="http://" + login + ":" + password + "@" + url;
  driver.get(baseUrl + "/");
  </code></pre>
  
  <p>When I execute the test, the page shows the authentication popup and still loading for a until I click cancel button. A that moment, I can access to the next page ,this mean that the authentication success but still always show the authentication popup</p>