# Downloading files not working anymore in Chrome Headless mode

**URL:** <https://forum.katalon.com/t/downloading-files-not-working-anymore-in-chrome-headless-mode/85042>\
**Category:** Web Testing\
**Tags:** chrome\
**Created:** [March 7, 2023, 11:08am UTC](https://forum.katalon.com/t/downloading-files-not-working-anymore-in-chrome-headless-mode/85042 "2023-03-07T11:08:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ictsupport](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ictsupport/32/16104_2.png) [@ictsupport](https://forum.katalon.com/u/ictsupport)\
**Post date:** [March 7, 2023, 11:08am UTC](https://forum.katalon.com/t/downloading-files-not-working-anymore-in-chrome-headless-mode/85042/1 "2023-03-07T11:08:57Z")

</div>

Hello,  
Since 1.5 weeks, downloading files no longer works in chrome headless mode. In normal mode it works. I can find very little about this on the internet except the article below:

[https://bugs.chromium.org/p/chromedriver/issues/detail?id=4357](https://bugs.chromium.org/p/chromedriver/issues/detail?id=4357)

Could it be related to this? And if so they indicate that the workaround should be to use “–headless=new” instead of “–headless”. does anyone know how i can set this up?

I use Katalon RE

thank you in advance

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [March 8, 2023, 7:00am UTC](https://forum.katalon.com/t/downloading-files-not-working-anymore-in-chrome-headless-mode/85042/2 "2023-03-08T07:00:12Z")

</div>

Assigned @Elly\_Tran on March 8, 2023, 7:00am UTC

Hi em, could you take a look at this issue? Thanks em

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [March 10, 2023, 9:20am UTC](https://forum.katalon.com/t/downloading-files-not-working-anymore-in-chrome-headless-mode/85042/3 "2023-03-10T09:20:57Z")

</div>

Hi,

I will seek for help from internal team and back to you soon.

---

<div class="post-metadata">

**Author:** ![joost.degeyndt](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joost.degeyndt/32/15366_2.png) [@joost.degeyndt](https://forum.katalon.com/u/joost.degeyndt)\
**Post date:** [March 14, 2023, 9:20am UTC](https://forum.katalon.com/t/downloading-files-not-working-anymore-in-chrome-headless-mode/85042/4 "2023-03-14T09:20:25Z")

</div>

> [@ictsupport](#):
>
> t be related to this? And if so they indicate that the workaround should be to use “–headless=new” instead

Hi. I noticed the same issue. Since this weekend, Chrome Headless no longer is able to download my files to my customized folder it seems. The normal Chrome download works fine.

I updated the WebDrivers (via Katalon) but still does not work.  
I see in logs: “Starting ChromeDriver 111.0.5563.64”  
2023-03-14 10:23:05.477 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 111.0.5563.64

Some more info on my desired capabilities I set:

```auto
                prefs.put("download.default_directory", customizedDownloadDirectory)
                prefs.put("download_dir", customizedDownloadDirectory)
                prefs.put("download.directory_upgrade", true)
                prefs.put("download.prompt_for_download", false)
                prefs.put("plugins.always_open_pdf_externally", true)
                prefs.put("profile.default_content_settings.popups", "0")
                prefs.put("profile.content_settings.exceptions.automatic_downloads.*.setting", "1")
                RunConfiguration.setWebDriverPreferencesProperty("prefs", prefs)
                RunConfiguration.setWebDriverPreferencesProperty("args", ["--no-sandbox", "--disable-dev-shm-usage"])
                RunConfiguration.setWebDriverPreferencesProperty("useAutomationExtension", "false")
...
            RunConfiguration.setWebDriverPreferencesProperty("args", ["--no-sandbox", "--disable-dev-shm-usage", "enable-automation"])
            RunConfiguration.setWebDriverPreferencesProperty("useAutomationExtension", "false")
            RunConfiguration.setWebDriverPreferencesProperty("excludeSwitches", ["enable-automation"])

```

---

<div class="post-metadata">

**Author:** ![joost.degeyndt](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joost.degeyndt/32/15366_2.png) [@joost.degeyndt](https://forum.katalon.com/u/joost.degeyndt)\
**Post date:** [March 14, 2023, 9:32am UTC](https://forum.katalon.com/t/downloading-files-not-working-anymore-in-chrome-headless-mode/85042/5 "2023-03-14T09:32:01Z")

</div>

Update:

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/2/9/294ea810da35eef572db96d36f340ddbb3238fbc.png)

Source: [https://bugs.chromium.org/p/chromedriver/issues/detail?id=4356&sort=-id](https://bugs.chromium.org/p/chromedriver/issues/detail?id=4356&sort=-id)
