title: Login popup and Selenium
body: <p>I'm trying to access a website to start my Selenium scripting. However as soon as i put the website's link it pops up a window asking for username and password. </p>
  
  <p>I can't do anything with Selenium. See what i tried in the code and that obviously didnt work out. </p>
  
  <p>Any ideas? </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using OpenQA.Selenium;
  using OpenQA.Selenium.Firefox;
  using OpenQA.Selenium.Support.UI;
  using System.Collections.ObjectModel;
  using System.Threading;
  using System.IO;
  using OpenQA.Selenium.Interactions;
  
  namespace CRMTest1WithSelenium
  {
      class Program
      {
          static void Main(string[] args)
          {
              IWebDriver driver = null;
              driver = new FirefoxDriver();
              string credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes("USERNAME" + ":" + "Password"));
  
              String URL = "http://" + credentials+ "@" + "bfaz-testcrm.cloudapp.net/BathfitterCRMTest";
  
              driver.Navigate().GoToUrl(URL);
              driver.Manage().Window.Maximize();
  
  
          }
      }
  }
  </code></pre>