Put that activity which you are using to download put inside “wait for download activity” and give that path where file is downloading. It will monitor your folder, after complete it will move for next
Before running into an XY Problem, lets focus back on the button.
As far we have understood you would like to let them bot wait till next (weiter) is activated.
So in a first analysis we would recommend to check if there is a button element attribute (use UiExplorer) that is triggering the active /enabled state
Unfortunately we missed that for some Applications in the past, but always good to check.
As Plan B we can think about:
reaction on text . We do see in Bearbeitung maybe someting like Abgeschlossen etc will be available once the work is done and also weiter button is activated. So we can sync the bot on this e.g. with the retry scope activity.
or
check loop: as clicking on the inactive weiter button will not harm so we can make a custom retry scope and
click in intervals on the weiter button
check if you detect something typical from next dialog step screen
That is how all timeouts work. They always continue immediately when the desired action is complete, object is ready, etc.
However, Wait for Download isn’t going to work for you, because it only waits for one file. It appears you are downloading multiple files. You will need to get a count of how many files to wait for, count how many files are already in the folder, then using a Do While you wait until the number of files is two more (or however many files) than how many were there before the downloads started.
I have an automation I’m working on right now that does something very similar, but I don’t have to first count how many files are in the folder - because I know I’m downloading into an empty folder.
I use Find Children to see how many reports will be downloaded:
Then I click the first report:
If there is more than one report then I shift-click the last one:
Thank you alot for the Answer, but unfortunately i dont know how many Files are going to be Downloaded, cause the quantity of files are always different, so i need a way to continue after the Download is ready.
So when the Download is Ready, the “weiter” Button changes into “Fertig Stellen”, maybe i could configurate the bot that, when the “fertig Stellen” button is there.