On Element Appear. Activity timeout exceeded

Getting this error for my On Element Appear.

Tried setting the Repeat Forever to false however I tried putting a click activity and send Hotkey activity to close the message box but the process finishes before the message box appears on screen.



Once give it a try with Element Exists activity.

I got the output true. How can I use Element Exists to close the window?

There is a minor bug with On Element Appear. If you remove the Sequence inside of the activity and put the action you want to take in its place, the action will be taken before checking if the element has appeared (essentially running the activities in reverse).

Make sure you leave the internal Sequence for the activity in place when using On Element Appear.

Alternatively, as lakshman suggested, you can use Element Exists, and use an If statement to check if it returned true. If this is true, use a Click activity to close the message box.


If element exists then it will give true right. After this use IF activity and in Then part use Click activity and indicate that pop up to close it.

I tried the if statement doesn’t work with the click or send hotkey activities. Also the robot does not recognize the “OK button” as a button so trying to avoid click activities as best as possible with this application.

Problem I am facing is that the Message takes a few seconds to appear. I for some reason get the value true before the message box visually appears on screen. Tried validating when I closed the message box myself to see if the robot was picking up another element but this does not seem to be the case.

Also I am confused about your explanation.

what what do I have to do you mean by "put the action you want to take in its place?

This is how I created the activity when getting the problem.

Ok, so you do have the sequence there, which is good. I have tried removing the sequence and dropping the activity in by itself, and that would cause errors.

In your case, set the WaitForReady to Complete to make sure it has completely loaded. If this does not work, look for an attribute of the window that indicates if the window is currently visible. If this is not available, then you will need to add a delay. The delay should be a last resort, however.

the only options I have for the On Element Appear activity are RepeatForever, WaitVisible and WaitActive.

I see WaitForReady here

Oh, thought it was a property that was under Options and did not see that I had Target minimized. Sadly it still does not work. Thanks for the assistance.

I am also having this issue, but it goes inside the On Element Appear, runs everything inside and then fails saying “activity timeout exceeded”. Why is it doing this after successfully performing all contained activities?

1 Like

Use Click activity. Once this is done, edit the selectors accordingly to capture the right anchors of the click activity. This should work.

Hi avalent. I am also experiencing this issue. Did you manage to resolve this?

Hi Guys,
I am having this issue today :frowning: Did anyone find a resolution?

Not sure about resolution or solution, but also have observed this same exact behavior today.
Now the question is, is this the intended behavior?
So what I observed is that the “On Element Appear” Activity has to already be running (stepped / executed) in order to detect and trigger when the Element actually appears. If the Element has already appeared and then the “On Element Appear” Activity is executed, then it does not work and times out. Overall, seems to be an odd behavior, but then again, we also have the “Element Exists”, so they appear on the surface to be contradictory, but it does say “On Appear”, so it has to be in the proper State in order to detect when “something appears”. If it is already there, then it cannot appear, as it already exists.
Given all that, you will have to ensure that your flow/logic is already executing the “On Element Appear” Activity and sitting and waiting for the Element to actually show within the allotted timeout period.