Is there a way to have the browser automatically replace a file with the same name if it exists?
Example:
1. Test downloads file called sample.csv
2. Re-run test
3. Test downloads file called sample(1).csv
Is there a way(a preference) so that when downloading the file it will just replace sample.csv instead of downloading a new file?
I have the usual preference set up for file downloads
fxProfile.setPreference("browser.download.folderList",2);
fxProfile.setPreference("browser.download.dir","c:\\mydownloads");
fxProfile.setPreference("browser.helperApps.neverAsk.saveToDisk","text/csv");