Needs permission to download when downloading a file with chrome

Hello,
I tried to find a solution on Google without success so i’m asking here maybe someone would be able to help me.
Since the latest Chrome update, when trying to download a file through my application i have this message: “Needs permission to download”.
When i’m doing the action manually, i don’t have this permission error.
Here is how i’m opening the chrome in my test:
###Chrome
${chrome_options} = Evaluate selenium.webdriver.ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_argument --disable-notifications
Call Method ${chrome_options} add_argument --disable-infobars
Call Method ${chrome_options} add_argument --ignore-certificate-errors
Call Method ${chrome_options} add_argument --disable-search-engine-choice-screen
Run Keyword If “${BROWSER}”.lower()==“headlesschrome” Call Method ${chrome_options} add_argument --headless
Call Method ${chrome_options} set_capability acceptInsecureCerts ${True}
${prefs} = Create Dictionary download.default_directory=download-folder-path download.directory_upgrade=true download.prompt_for_download=false
Call Method ${chrome_options} add_experimental_option prefs ${prefs}

	Open Browser  ${URL}  browser=${BROWSER}	alias=${alias}   remote_url=${SELENIUM_URL}  options=${chrome_options}

I always used the same way and it worked before but i don’t know what changed. The download folder has no particular right. When doing the same action with Firefox i don’t have this permission error when the file is downloaded in the same folder
I don’t even know if it is a subject for this forum but how i’m using robotframework + selenium+chromedriver, you never know. So f someone has any idea, it would be helpful. thank you
download_permission

Have you tried setting also download.download_restrictions=0 in $prefs?

Same issue with this setting

Ok i finally found a solution. the path for the download folder was too long for Chrome, i changed the path to a short one and no more permission requested.

3 Likes