On Element Appear; how to wait without timeout

It sounds like you are interested in MonitorEvents, however I have not used it enough to know how they work in regards to wait time.

One approach for dynamic waiting I use many times when dealing with file exists or something smilar is using the Retry Scope. This will let you avoid infinite loops and it will keep looking for a certain state of your screen or file.


So in that example, it will keep looking if an element exists every second for 3600s = 1hour. Then it will throw an exception once it is passed the retries, unless you set continueonerror to true.

You can also change it up depending on what you need like to wait for a file to exist, then remove the inner Activity and just use the Boolean Is True activity with File.Exists(filepath)

I don’t know how well this will work for you, but it’s an option for waiting until something is True.

Regards.

2 Likes