Running karate tests on chrome with chromedriver inside docker

为君一笑 提交于 2021-01-28 21:07:17

问题


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


回答1:


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

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 :)



来源:https://stackoverflow.com/questions/62700271/running-karate-tests-on-chrome-with-chromedriver-inside-docker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!