title: How to hide Command prompt in Microsoft Edge SeleniumTools
body: <p>Hi i'm using selenium to open edge(Chromium) then navigate to a URL. written in c# windowsform application</p>
  
  <p>Here is the code</p>
  
  <pre><code>IWebDriver edgeDriver;
  
                      var options = new EdgeOptions();
                      options.UseChromium = true;
  
                       edgeDriver = new EdgeDriver(options);
                      edgeDriver.Navigate().GoToUrl(@Config.SpcUrl);
  </code></pre>
  
  <p>it is working fine </p>
  
  <p>what i have try is this to hide the command prompt</p>
  
  <pre><code>IWebDriver edgeDriver;
       var chromeDriverService = EdgeDriverService.CreateDefaultService();
                          chromeDriverService.HideCommandPromptWindow = true;
                          var options = new EdgeOptions();
                          options.UseChromium = true;
  
                           edgeDriver = new EdgeDriver(chromeDriverService ,options);
                          edgeDriver.Navigate().GoToUrl(@Config.SpcUrl);
  </code></pre>
  
  <p>but it gives me an error of</p>
  
  <pre><code>An unhandled exception of type 'OpenQA.Selenium.WebDriverException' occurred in Microsoft.Edge.SeleniumTools.dll
  
  Additional information: options.UseChromium must be set to false when using an Edge Legacy driver service.
  </code></pre>
  
  <p>What i'm doing wrong or i'm missing something?</p>