1

The compiler is looking target folder for the chrome.exe file. In which it is looking for some chrome_1639142447236 file. Actually it is available at C:\Program Files (x86)\Google\Chrome\Application this location. Below error message I'm getting:

18:51:39.096 [ForkJoinPool-1-worker-3] ERROR com.intuit.karate - org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information, http call failed after 4022 milliseconds for URL: http://localhost:9222 18:51:39.098 [ForkJoinPool-1-worker-3] ERROR com.intuit.karate - http request failed:

Below is the feature level error message:

failed features: src.test.java.examples.users.Sample: Sample.feature:9

  • driver config / start failed: org.apache.http.conn.HttpHostConnectException: Connect to localhost:9222 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information, options: {type=chrome, target=null}
Victor
  • 5,142
  • 4
  • 12
  • 29
jamp ani
  • 11
  • 1

1 Answers1

0

If you know where the chrome executable is, please follow the instructions to customize it in your Karate tests: https://github.com/karatelabs/karate/tree/master/karate-core#configure-driver

* configure driver = { type: 'chrome', executable: 'chrome' }

Also read this answer for even more details: https://stackoverflow.com/a/66762430/143475

Peter Thomas
  • 47,282
  • 14
  • 68
  • 196
  • tried above solution it worked. I was able to launch the browser. But it was not executing scenario. The browser is just opened for few seconds and closed. Showing below error message. driver config / start failed: chrome server returned empty list from http://localhost:9222, options: {executable=C:\Program Files\Google\Chrome\Application\chrome.exe, target=null, type=chrome} am i missing something here – jamp ani Dec 13 '21 at 14:02
  • no idea. ui automation is not easy, so all the best – Peter Thomas Dec 13 '21 at 17:15