title: OpenQA.Selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally while executing tests through Selenium start on linux
body: <p>I created an application that use <strong>Selenium</strong> using .NetCore for use it on Linux, actually this is my code implementation:</p>
  
  <pre><code>public class Program 
  {
      public static async Task Main(string[] args)
      {
          //Settings for chrome
          var chromeOpts = new ChromeOptions();
          chromeOpts.AddArgument("headless");
          chromeOpts.AddArgument("no-sandbox");
  
          //Get assembly path where chrome driver is located
          string codeBase = Assembly.GetExecutingAssembly().CodeBase;
          UriBuilder uri = new UriBuilder(codeBase);
          string path = Uri.UnescapeDataString(uri.Path);
          path = Path.GetDirectoryName(path);
  
          var driver = new ChromeDriver(path, chromeOpts, TimeSpan.FromSeconds(180));
      }
  }
  </code></pre>
  
  <p>as you can see I am using as driver Chrome, I downloaded it <a href="https://chromedriver.storage.googleapis.com/index.html?path=2.9/" rel="nofollow noreferrer">here</a>, I also added the driver inside the folder of the assembly, in this way the ChromeDriver knows already where to search it.</p>
  
  <p>On linux I changed the folder permission using <em>chmod -R 777</em>, but when I run my Dotnet application I get this:</p>
  
  <p><a href="https://i.stack.imgur.com/XjV8c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XjV8c.png" alt="enter image description here"></a></p>
  
  <p>Seems that <em>Selenium</em> cannot start the application. 
  Looking at the Exception I get: </p>
  
  <blockquote>
    <p>Cannot find Chrome binary</p>
  </blockquote>
  
  <p>Unfortunately I didn't find anything similar on the web, someone could help me?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I Just reinstalled <code>Chrome</code> on my linux machine and now the error above went away, but there is another problem now, infact I get this error:</p>
  
  <pre><code>OpenQA.Selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally  (Driver info: chromedriver=2.9.248304,platform=Linux 4.4.0-130-generic x86_64)   
    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.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)   
    at OpenQA.Selenium.Chrome.ChromeDriver..ctor(String chromeDriverDirectory, ChromeOptions options, TimeSpan commandTimeout)\   at ODS.Program.Main(String[] args)
  </code></pre>