cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Download Path in Chrome

naveed_raza
Level 7

Hi All,

We have an automation which exports the data to excel file and we have to save that file in specific folder and for that we are getting the Save As popup and popup will have default download folder path always and that is a temporary profile download path and if we change the download folder path manually , post that if we reboot the bot then profile setting is getting reset as part of company policy.

And we want to change the folder path and Is there any way we can change the download folder path before launching the browser using any way like Vb.Net, Power Shell or any better way ?

we dont want to use the Save As open object as Windows mode as sometimes whats happening is , whenever we enter the entire file path where we want to save in file textbox on Save As Window , then its saving the file , however when we open the file its showing file is corrupted.

4 REPLIES 4

ldickin
MVP

Hi @naveed_raza - When we converted from Internet Explorer to Edge this was something my company implemented within our VDI settings and I believe it is set within the browser policy.  You might need to look into how to adjust this within your company policy if you want a different default download folder.  

Another option to consider is downloading to the default folder and then moving the file to the correct folder.  This might avoid any policy changes

As per our company policy , they can't set download folder path for different teams , here we have around 10+ units and each unit has their own RPA team , RPA COE team is not setting policy for each unit , due to this they are keeping generic policy.

here , in VDIs they creating a temporary file , sometimes domain gets changed and due to that default path always will not have same and we are thinking to change to the user profile download path.

its very easy to change using Selenium before launch 

 

Regards,

Mohammad Naveed

Hi @naveed_raza ,

May be it is failing because you are trying open a partially downloaded file.

Try adding a wait stage before opening a file which you downloaded using Save As window.

Best Regards,

Sayeed Bin Abdullah 

No.. we tested in debug mode , Save As Window its saving the file and after that manually we checked by opening the file, 

When we are passing entire full file path in file textbox and clicking on save , then only its corrupting the file , 

When we just directly click on save button then its saving file perfectly and its opening fine also, thats why we are looking to update the download folder path