I have a script which downloads files from Chrome to a specific directory. Because the specific location changes throughout the script, I would set my Chrome preferences programmatically.
def chromePrefs = [
('profile.default_content_settings.popups') : '0',
('download.default_directory') : currentDownloadDirectoryString,
('download.prompt_for_download') : 'false'
]
RunConfiguration.setWebDriverPreferencesProperty('prefs', chromePrefs)
In Katalon Studio version 7.4.3, this works fine and the files are downloaded to the correct directory.
But, in version 7.5.1, the files were downloaded to the system default directory, e.g. C:\Users\sstream\Downloads
.
Does anyone know what would cause this?
I notice the changelog mentions Chrome 83 is now supported. Did this version change the key for the default download directory preference?