I am able to download a file in selenium in Selenium(chrome) and it shows in the bottom of the browser. I want to open the file automatically after downloading it.
I have tried using the below options but it doesnt seem to work
ChromeOptions options = new ChromeOptions();
HashMap<String, Object> prefs = new HashMap<String, Object>();
prefs.put("download.extensions_to_open", "ica");
prefs.put("download.prompt_for_download", "false");
prefs.put("download.directory_upgrade", "true");
options.setExperimentalOption("prefs", prefs);
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(ChromeOptions.CAPABILITY, options);
How to make it enable ? And the file i am downloading is of type .ica, it is a citrix file.