title: Unable to create new service: ChromeDriverService
body: <p>I have globally installed Selenium Standalone:</p>
  
  <pre><code>npm install selenium-standalone -g
  selenium-standalone install --singleDriverInstall=chrome
  </code></pre>
  
  <p>I have also bastardised the <a href="https://www.hanselman.com/blog/RealBrowserIntegrationTestingWithSeleniumStandaloneChromeAndASPNETCore21.aspx" rel="nofollow noreferrer">code from this page</a> into this dotnet core / XUnit test:</p>
  
  <pre><code>using System.Threading;
  using System;
  using Xunit;
  using OpenQA.Selenium;
  using OpenQA.Selenium.Remote;
  using OpenQA.Selenium.Chrome;
  using System.Diagnostics;
  
  namespace XunitTestLib.Unit
  {
      public class BasicBrowserTest : IDisposable
      {
          public Process _process;
          public IWebDriver Browser { get; }
  
          public BasicBrowserTest()
          {
              _process = new Process()
              {
                  StartInfo = new ProcessStartInfo
                  {
                      FileName = "selenium-standalone",
                      Arguments = "start --drivers=chrome",
                      UseShellExecute = true
                  }
              };
              _process.Start();
  
              var options = new ChromeOptions();
              // options.AddArgument("--headless");
              options.AddArgument("--disable-gpu");
              options.AddArgument("--no-sandbox");
              options.AddArgument("--ignore-certificate-errors");
              options.AddArgument("--allow-insecure-localhost");
              options.AddArgument("--acceptInsecureCerts=true");
              options.AddArgument("--proxy-server='direct://'");
              options.AddArgument("--proxy-bypass-list=*");
              options.SetLoggingPreference(OpenQA.Selenium.LogType.Browser, LogLevel.All);
  
              Thread.Sleep(4000);
              Browser = new RemoteWebDriver(options);
          }
  
          public void Dispose()
          {
              Browser.Dispose();
              _process.CloseMainWindow();
          }
      }
  }
  </code></pre>
  
  <p>I am trying to start up selenium-standalone with ChromeDriver so that I can driver the browser to perform browser testing.</p>
  
  <p>I am <strong>not</strong> hosting my own web application - this is only test run tests against a site which is already running.</p>
  
  <p>The Sleep is to allow selenium to start up in the shell process.</p>
  
  <p>However, I get this output when run with <code>dotnet test --filter DisplayName="Homepage"</code>:</p>
  
  <pre><code>[xUnit.net 00:00:04.88]     Homepage [FAIL]
  Failed   Homepage
  Error Message:
   System.InvalidOperationException : Unable to create new service: ChromeDriverService
  Build info: version: '3.141.0', revision: '2ecb7d9a', time: '2018-10-31T20:22:52'
  System info: host: 'horacepc', ip: '191.191.191.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_201'
  Driver info: driver.version: unknown (SessionNotCreated)
  Stack Trace:
     at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
     at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
     at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
     at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
     at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities, TimeSpan commandTimeout)
     at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
     at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICapabilities desiredCapabilities)
     at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(DriverOptions options)
     at XunitTestLib.Unit.BasicBrowserTest..ctor() in C:\git\core\XunitTestLib\Unit\BasicBrowserTest.cs:line 46
  
  Total tests: 1. Passed: 0. Failed: 1. Skipped: 0.
  Test Run Failed.
  </code></pre>
  
  <p>The line the error is indicating is this line: <code>Browser = new RemoteWebDriver(options);</code></p>
  
  <p>My understanding is that the ChromeDriver is attempting to connect to selenium via an HTTP connection, but is failing to start/initialise.</p>
  
  <p>I don't understand why it is failing.</p>