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.

export_msg

@Nelson.R

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.

@Nelson.R

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
image

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?

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