Help with Check app state

For the first time i’m using ‘check app state’ instead of ‘On element appear’. I don’t want the robot to do anything if an element does not appear, it just has to throw an error. But even if i do not put anything inside the ‘target does not appear’ block it does not happens. If i want the error will i has to use throw activity?

Will ‘On element appear’ fits better in this case?

1 Like

check app state also similiar with element exist and if condition if you want to throw error while element appear please go ahead with throw activity in then part and for throw exception use new exception(“exception message you want to give”)

2 Likes

Hey,

You can go through this docs
Check App State (uipath.com)

Thanks

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