Generating error on purpose (for try catch activity)

Hi

My automation runs on web and there are many many bugs, some of them are almost impossible to fix for me as I’m just a begginer so I figured out that if the error is encountered then my automation will restart (I use retry and try catch activity which works just fine).

How can I generate an error on purpose? let’s say I want to verify that some items were selected before I continue, and I use check app activity:

So when the element appears then it is OK I want to continue as per attached screenshot, but how can I make that if the element does not appear then an error is generated? (so the try catch activity I have will restart the automation)?

@anon40731888 use throw activity

lol how is this so simple? Thank you!

But what do I type here?

@anon40731888 Yes Its simple.
like this

2 Likes

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