There are times when the PO application will throw error messages. This could happen when the automation has issues entering data into the mandatory fields. Let's handle such a scenario so that we can continue to the next transaction:
- Let's generate an error message in our PO application. Go to the Apptivo PO application and create the PO without filling out any details. The application will throw an error as follows:
- Now that we have the error message, let's handle it by pressing Ok to continue.
- Let's go to UiPath Studio and add an Element Exists activity right after the Create Click activity. Indicate the Error dialog header in the browser and update the properties as follows:
- WaitForReady within Target: WaitForReady.COMPLETE
- For Exists within Output, create a new variable called boolError:
- Let's add an If control activity with the Not boolError condition to check if the...