title: DesiredCapabilities is obsolete
body: <p>I used to have the following code in order to run the driver as different user.</p>
  
  <pre><code> public static IWebDriver RunIEAsDifferentUser(string User,string Password)
      {
  
          var capabilitiesInternet = DesiredCapabilities.InternetExplorer();
          capabilitiesInternet.SetCapability("ignoreProtectedModeSettings", true);
          capabilitiesInternet.SetCapability("EnsureCleanSession ", true);
          RunAs("C:\\Exlporer/IEDriverServer.exe", User, Password);
          _webdriverIE = new RemoteWebDriver(new Uri("http://localhost:5555/"), capabilitiesInternet, TimeSpan.FromSeconds(300));
          return _webdriverIE;
  
      }
      public static void RunAs(string path, string username, string password)
      {
          ProcessStartInfo myProcess = new ProcessStartInfo(path);
          myProcess.UserName = username;
          myProcess.Password = MakeSecureString(password);
          myProcess.UseShellExecute = false;
          myProcess.LoadUserProfile = true;
          myProcess.Verb = "runas";
          myProcess.Domain = "DOM001";
          Process.Start(myProcess);
      }
  
      public static SecureString MakeSecureString(string text)
      {
          SecureString secure = new SecureString();
          foreach (char c in text)
          {
              secure.AppendChar(c);
          }
  
          return secure;
      }
  </code></pre>
  
  <p>The thing is that I'm getting warning :<code>DesiredCapabilities is obsolete</code> and I'm not sure what I have to do in order to keep this working.</p>
  
  <p>The problematic line is : <code>_webdriverIE = new RemoteWebDriver(new Uri("http://localhost:5555/"), capabilitiesInternet, TimeSpan.FromSeconds(300));</code> 
  I have tried changing it to <code>InternetExplorerOptions caps = new InternetExplorerOptions();</code>. 
  Unfortunately , the <code>RemoteWebDriver</code>  only accept <code>Icapabilities</code> now.</p>