How to verify downloaded file

I have to verify that the file is downloaded or not after the clicking of download button

Hello @nutan and welcome to our community!

Please always post to the appropriate category in order to receive faster and more relevant answers.
This way you are also going to help other members that might have the same questions as you.

Now regarding the check…
You can utilize the File.Exists action.
Check it here:
https://robin-language.org/docs/robin-the-rpa-language/standard-modules/file-actions/

It might seem it does not return an output but actually the boolean result of the action acts as an output (a file either exists (true) or not (false)).

You could implement the following logic:

(download the file)
#the program will wait 1 second for the file to download (edit this accordingly)
wait (how many seconds)
#check whether the file exists.
if (File.Exists File: “Path to file”) then
#other commands here
end

Best regards,
J.


James Papadimitriou
Technical Evangelist

2 Likes