# Change Download Path

**URL:** <https://forum.katalon.com/t/change-download-path/94441>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [August 31, 2023, 3:10pm UTC](https://forum.katalon.com/t/change-download-path/94441 "2023-08-31T15:10:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fzacraoui](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/fzacraoui/32/20464_2.png) [@fzacraoui](https://forum.katalon.com/u/fzacraoui)\
**Post date:** [August 31, 2023, 3:10pm UTC](https://forum.katalon.com/t/change-download-path/94441/1 "2023-08-31T15:10:38Z")

</div>

Hello,

I am doing a test that downloads the file, reads it and then deletes it using the following code:

WebUI.waitForElementClickable(findTestObject(‘/button\_download2’), 2)

WebUI.click(findTestObject(‘/button\_download2’))

WebUI.delay(4)

File fileReport = new File(‘C:/Users/Downloads/report.csv’)

String data = FileUtils.readFileToString(fileReport)

boolean fileSuccessfullyDd = new File(‘C:/Users/Downloads/report\_flux.csv’).delete()

System.out.println(fileSuccessfullyDd)  
I also updated the Desired Capability

How can I change the download path ?

ANY Help Please !!

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/a/7/a7d0ee2a18ec394ded17ab2039886fc521d6766a.png)

---

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [August 31, 2023, 3:29pm UTC](https://forum.katalon.com/t/change-download-path/94441/2 "2023-08-31T15:29:49Z")

</div>

Hi @fzacraoui, Please see this post: [Finding user's "Downloads" folder & Katalon project's "Data Files" folder relative to the project folder - #5 by Dave\_Evers](http://forum.katalon.com/t/finding-users-downloads-folder-katalon-projects-data-files-folder-relative-to-the-project-folder/61883/5)

---

<div class="post-metadata">

**Author:** ![fzacraoui](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/fzacraoui/32/20464_2.png) [@fzacraoui](https://forum.katalon.com/u/fzacraoui)\
**Post date:** [September 1, 2023, 9:00am UTC](https://forum.katalon.com/t/change-download-path/94441/3 "2023-09-01T09:00:25Z")

</div>

Thank you for your reply.  
This code returns the path of the project as well as the path in which the download file would be put.  
But the file is always downloaded on the default path C:/Downloads and not the Data Files file.  
Is there a modification to be made at the level of the setting\> Desired Capabilities?

---

<div class="post-metadata">

**Author:** ![atul.rai](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/atul.rai/32/22830_2.png) [@atul.rai](https://forum.katalon.com/u/atul.rai)\
**Post date:** [September 1, 2023, 9:25am UTC](https://forum.katalon.com/t/change-download-path/94441/4 "2023-09-01T09:25:12Z")

</div>

for this , you need to change your desired path from chrome browser-\> setting-\>Downloads

---

<div class="post-metadata">

**Author:** ![fzacraoui](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/fzacraoui/32/20464_2.png) [@fzacraoui](https://forum.katalon.com/u/fzacraoui)\
**Post date:** [September 1, 2023, 12:52pm UTC](https://forum.katalon.com/t/change-download-path/94441/5 "2023-09-01T12:52:01Z")

</div>

> [@atul.rai](#):
>
> Downloads

It’s work with this

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/c/7/c743fecbb2646923451fdc03774d7d90718bb3cc.png)
