Catching UI Error (Could not find the user-interface (UI) element for this action)?

Hi and Good day to everyone.

Asking a little guidance here on how to catch this type of error?
Could not find the user-interface (UI) element for this action.

I already tried some and it seems not going in the catch clause :face_with_raised_eyebrow:

Any help and advice is much appreciated.

Thank you very much in advance :grinning:

Hey!

The system.exception will catch all the exceptions…

If we need specific exception go to browse for types… and choose SelectorNotFoundException (This will catch the selector kind of exceptions…)

Regards,
NaNi

hi @THIRU_NANI .

Unfortunately it didn’t still went to the catch

Will the try-catch still work if the try-catch block is from another activity calling another activity that has the error?

Like below sequence:

MainSequence>Try-Catch>Invoke 2nd Sequence>Click Activity(this is where the error is happening)

Or the Try-Catch must be in the same activity like this?
Like below sequence:

Try-Catch>Click Activity(this is where the error is happening)

Thanks.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.