Let's handle two scenarios here – form exceptions, such as data not being present or being incorrect, and then any other errors that may come up:
- If there are any issues with creating a new user, the form does not advance to the next page. So what we will do is check whether the Save button is still present on the page. In that case, the user addition failed and we have to return a failure flag, or else we return a success flag. To do that, let's add a Delay action for 2 seconds. Then, add an If action and set Condition to Object. Capture the Save button in the Add User Window we used in the last step, as shown in the following screenshot:
- As we said, if the Save button is still around, it is a failure and we return a "No" flag. Let's add a String Assign action and set Select the source string variable(s) to No. In the Select the destination string variable property...