title: Running chromedriver with selenium in a windows docker image for gitlab job
body: <p>I have SpecFlow tests in a c# project that I would like to get running in a GitLab job. we are doing it with a <em>Windows Docker Image</em> so I don't think we can uses Selenium's standalone chrome.
  And I have tried running it with the arguments &quot;--headless&quot; and &quot;--disable-gpu&quot;. the docker image should also have 2gb so adding --shm-size=&quot;2g&quot; doesn't seem like it will help.
  I'm reading that Windows Docker Images makes it difficult to support GUIs.</p>
  <p>the error I see is:
  <code>System.AggregateException : One or more errors occurred.\r\n---- OpenQA.Selenium.WebDriverException : unknown error: Chrome failed to start: crashed.\n  (chrome not reachable)\n  (The process started from chrome location C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)\r\n---- System.NullReferenceException : Object reference not set to an instance of an object.</code></p>
  <p>Edit: the arguments suggested in this post do not work <a href="https://stackoverflow.com/questions/53073411/selenium-webdriverexceptionchrome-failed-to-start-crashed-as-google-chrome-is">Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed</a></p>
  <p><code>chromeOptions.AddArgument(&quot;--no-sandbox&quot;); chromeOptions.AddArgument(&quot;--headless&quot;); chromeOptions.AddArgument(&quot;--disable-dev-shm-usage&quot;);</code></p>
  <p>The Chrome binary is also installed in the default location and it works locally so that isn't the issue.</p>