Dynamic Delay option while downloading files from webpage

Hi,

I am trying to download multiple files from a webpage using parameters like ID and period, so while running when bot is clicking on download button it takes some time for file to download in between 3 to 5 seconds, but there are some files which take more than 15 seconds’ time. immediately after this i have rename activity in Loop so once file get downloaded it get renamed, but some time it shows me error like "Source file does not exist", because file is still downloading and not completed yet.

i want bot to rename the files only when it gets downloaded and available in the folder to rename, i used wait for download activity and given a timeout of 30 seconds but in that case, it is waiting for every file 30 seconds to rename and move to next steps. it should wait for only those files which taking time and those got downloaded they should be renamed immediately.

Please advise on this…!

Thanks

if the file you are using has a static name(same name each time) then you can use File Exists Activity inside while loop with max iteration and some delay
Or Use Download File from URL Activity if that helps

Hi @chandreshsinh.jadeja

Thanks for the reponse…! but it is still giving an error while ranaming as source file does not exist, for smaller file it is working fine.

Hi @Dhanad_Prathamesh, doesn’t it only wait as long as the download takes? See screenshot.

image

Can you provide your code? The screenshot works fine.

have you tried this after clicking on the download button to search for the downloaded file in a do-while?

Hello @Dhanad_Prathamesh ,
Please check if the below thread helps
(Identifying if the file is downloaded)

@Dhanad_Prathamesh,

You should be using Activities - Wait for Download for this.

Thanks,
Ashok :slight_smile:

Hi @Julian_Muhlbauer
please find my work

Hi @chandreshsinh.jadeja

i am working in Studio X so this do while activity i can’t see in it.

@Dhanad_Prathamesh
we have do while in StudioX
image

you can copy from this process
NewBlankTask.zip (49.7 KB)