title: Does karate support headless testing in CI environment (gitlab CI)
body: <p>We have done UI automation using karate framework. But I am facing challenges while trying to run the tests using gitlab pipeline.</p>
  <p>I am using gradle build tool and added a simple step in the gitlab-ci.yaml, but the build fails every time. Here is what I tried:
  Added this in feature file:
  <code>* configure driver = { type: 'chrome', headless: true }</code>
  Got the error:</p>
  <pre><code>  18:10:39.056 [ForkJoinPool-1-worker-1] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}-&gt;http://localhost:9222
    18:10:39.056 [ForkJoinPool-1-worker-1] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:9222
    18:10:39.056 [ForkJoinPool-1-worker-1] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-8: Shutdown connection
    18:10:39.056 [ForkJoinPool-1-worker-1] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection discarded
    18:10:39.057 [ForkJoinPool-1-worker-1] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 8][route: {}-&gt;http://localhost:9222][total available: 0; route allocated: 0 of 5; total allocated: 0 of 10]
    18:10:39.057 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1] failed: Connection refused (Connection refused), http call failed after 1 milliseconds for URL: http://localhost:9222
  </code></pre>
  <p>Also, tried by adding chromedriver: <code>* configure driver = { type: 'chromedriver', port: 9515, executable: 'chromedriver' }</code>. Got this error:</p>
  <pre><code>   18:19:01.541 [ForkJoinPool-1-worker-1] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {}-&gt;http://localhost:9515][total available: 0; route allocated: 0 of 5; total allocated: 0 of 10]
      18:19:01.542 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - org.apache.http.conn.HttpHostConnectException: Connect to localhost:9515 [localhost/127.0.0.1] failed: Connection refused (Connection refused), http call failed after 19 milliseconds for URL: http://localhost:9515/session
      18:19:01.542 [ForkJoinPool-1-worker-1] ERROR com.intuit.karate - http request failed: 
      org.apache.http.conn.HttpHostConnectException: Connect to localhost:9515 [localhost/127.0.0.1] failed: Connection refused (Connection refused)
  </code></pre>
  <p>I want to execute the tests on a particular environment when pipeline runs but nothing is working as of now.</p>