I have a docker image that is used to run selenium tests. The problem is that selenium always downloads the latest browser (chrome) and driver (chromedriver) leading to a lot of traffic.
I have tried to download chrome and chromedriver using selenium-manager both from the python and java packages in my Dockerfile. Even though the files are downloaded, when the tests run they are downloaded again. I have also tried setting the following env vars in my Dockerfile:
```
ENV SE_OFFLINE=true
ENV SE_AVOID_BROWSER_DOWNLOAD=true
ENV SE_FORCE_BROWSER_DOWNLOAD=false
ENV SE_TTL=0
```
And, finally I tried to set SE_MANAGER_PATH
env var and use setBinary in my code. It seems that both the browser and driver are still downloaded every time a set of tests run using the docker image (in particular, a fargate instance).
Any ideas how to resolve this?
neodem is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2