繁体   English   中英

[空手道]:空手道 UI 自动化:无法启动浏览器

[英][karate]: Karate UI Automation: Unable to launch the browser

编译器正在寻找 chrome.exe 文件的目标文件夹。 它正在其中寻找一些 chrome_1639142447236 文件。 实际上它可以在 C:\Program Files (x86)\Google\Chrome\Application 这个位置找到。 我收到以下错误消息

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]错误 com.intuit.karate - http 请求失败:

以下是功能级别错误消息

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] 失败:连接被拒绝:没有更多信息,选项:{type=chrome, target=null}

如果您知道chrome可执行文件在哪里,请按照说明在您的空手道测试中自定义它: https://github.com/karatelabs/karate/tree/master/karate-core#configure-driver

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

另请阅读此答案以获取更多详细信息: https://stackoverflow.com/a/66762430/143475

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM