问题
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