在 docker 内使用 chromedriver 在 chrome 上运行空手道测试 [英] Running karate tests on chrome with chromedriver inside docker

查看:54
本文介绍了在 docker 内使用 chromedriver 在 chrome 上运行空手道测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 docker 容器中的 chromedriver 和 chrome 运行我的空手道测试.如何实现?我只能在 here

I would like to run my karate tests using the chromedriver and chrome present in a docker container. How can this be achieved ? I could only find the documentation on the native version of chrome here

推荐答案

我们只通过 Docker 支持 chrome native.请注意,您可以使用现有的 Selenium网格".下文,例如,请参阅这些:

We only support chrome native via Docker. Note that you can use existing Selenium "Grid" infra, for e.g see these:

https://github.com/ptrthomas/karate-devicefarm-demo

https://stackoverflow.com/a/60992292/143475

您可以考虑创建自己的 Docker 映像(这很常见)或使用现有的Selenium 风味".一.请注意,空手道是开源的.也许你有兴趣贡献这个 Docker 容器:)

You can consider creating your own Docker image (which is very common) or use an existing "Selenium flavored" one. Do note that Karate is open-source. Maybe you would be interested to contribute this Docker container :)

这篇关于在 docker 内使用 chromedriver 在 chrome 上运行空手道测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆