Description
💥 Regression Report
Starting with node-chrome:3.141.59-20200719
downloading a file in Chrome bring up a modal/prompt asking for the save location. This error does not occur in node-chrome:3.141.59-20200525
and lower. Not sure if it coincides with a few other changes in the 3.141.59-20200719
image. Chrome was also bumped from v83 to v84. But when I test locally with v84 I can still do silent downloads.
Chrome options that enable prompt-less downloads -
Map<String, Object> chromePrefs = new HashMap<>();
ChromeOptions options = new ChromeOptions();
chromePrefs.put("download.default_directory", downloadPath);
chromePrefs.put("download.prompt_for_download", false);
options.setExperimentalOption("prefs", chromePrefs);
MutableCapabilities chromeCapabilities = new MutableCapabilities();
chromeCapabilities.setCapability(ChromeOptions.CAPABILITY, options);
Last working version
Worked up to version: 3.141.59-20200525
Stopped working in version: 3.141.59-20200719
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should be able to download a file without the save-as prompt/modal from a web page in Chrome inside a running docker-selenium container.
Environment
OS:
Docker-Selenium image version: node-chrome:3.141.59-20200719
Also provide the docker image id: sha256:1b785fed01399256af34748d77dbb4853646ccafe2d5506f75d10ad3f97e663c
Docker version: 18.09.3, build 774a1f4
Docker-Compose version (if applicable):
Exact Docker command to start the containers (if using docker-compose, provide
the docker-compose file as well):
I use a Docker Swarm setup which is a little more involved. Will be happy to share commands if absolutely needed for troubleshooting.