How to allow save option on Firefox while downloading a file in JS - TestCafe?

How can I allow to save option on Firefox while downloading a file in TestCafe?

Hi Emma,

You can refer to the following capabilities:

ChromeOptions options = new ChromeOptions();
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("profile.default_content_settings.popups", 0);//Don't display any popup for download
prefs.put("download.default_directory", "[path]");//Default download directory
options.setExperimentalOption("prefs", prefs);
DesiredCapabilities desiredCapabilities =;
desiredCapabilities.setCapability(ChromeOptions.CAPABILITY, options);
desiredCapabilities.setCapability("applicationCacheEnabled", false);
driver = new ChromeDriver(desiredCapabilities);

Ref: Set Firefox profile to download files automatically using Selenium and Java - Stack Overflow