How to set the download directory in docker selenium How to set the download directory in docker selenium docker docker

How to set the download directory in docker selenium


You can add a volume to your selenium container that would be mapping your host to container folder so that your volumes would look like:

selenium:    image: selenium/standalone-chrome    ports:     - 4444:4444    restart: always    volumes:     - /path/to/host/folder:/Downloads

So all files which your container process would put to /Downloads would appear in /path/to/host/folder of your host.