Trying to find a solution to download files during my tests, i found this question that lead me to preferences file in chrome folder.
Apparently, there are no info
You are doing it correctly, except you need to:
directory_upgrade
optionExample:
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
prefs: {
download: {
'prompt_for_download': false,
'directory_upgrade': true,
'default_directory': '/absolute/path/here'
}
}
}
},
See also: Can't stop Protractor from displaying file download prompt