How to track chrome downloads using Uipath

Currently we are working on customer application where we need to download CSV files from application using chrome and once download is completed then we need to perform few operations on the download file.

Files which will be downloaded from application are dynamic and each file has different download completion timings.

Now issues is, how to track the downloads completion in chrome using UiPath?


You can try with the Monitor Events and File Change Trigger activities. Since browsers give files a temporary name until they finish downloading, you can just monitor the Downloads folder for any renamed files. If you know the name of the downloaded file, you can monitor for that specific one. If not, you can use the System.IO.Directory.GetFiles method to get the list of initial files and again after an event is triggered. The new file should be the one downloaded, if no other process is using the target folder.