So basically I can get 2 different types of success message after an operation is done.
Even if I get one of the message… I want the test case to end. how can i do it.
I tried it with parallel but that just means other one will keep running even if I got one message
I’m looking for something like an OR gate
You can see in the image…
Use Element exists or Check app state activity to check the presense of those message. If either of that found ( use a if condition to check the existance)
Message1 and Message2 are the boolean output from element exist activity.
For example for the first messgae the output is “Message1” is True
Second messgae the output is “Message2” is False\
If(Message1 or Message2)
You can use the below doc for ending.
A process can be stopped through Kill or Cancel commands. The command can be sent from Orchestrator, Assistant or Studio. When the Robot receives the Cancel command, it cancels the execution of the current activity and starts executing the final...
seems awfully long… isnt there a better way?
@KD11 Not in my idea now. As you need to check the existence of both the messages, you will have to use Element exists. Then to check the condition you will have to use an if condition. Then kill the process.
Maybe some other can provide another solution.
The two messages are “Operation completed” and “Operation completed with some warnings”
I’m thinking I’ll edit the message and only look for “Operation completed” as my anchor
what do you think?
Have you tried using Regex in Selector Attributes, you can configure to Check for Either two of the messages that you would get. More on using regex in Selectors is provided below :
It is now possible to use Regular Expressions in your selectors. Follow this guide to learn how!
We have added extra syntax to the Selector Editor to allow for advanced configuration of your selectors.
As an example, I will be creating a selector that will be able to open a file whose name is dynamically changing.
Let’s assume I am receiving daily list of bills via email which are saved as a text file named ‘bills mmddyy.txt’, e.g ‘’bills 101019’. Now, I want to writ…
In this way, you wouldn’t need to use Two
Check App State Activities.
@KD11 Yes that is also possible. It depends on the message box you are going to check. Else if the message box is having some buttons, you can validate that also.
Then act on it.
unfo, no matter what happens, there will be an OK button… so cant validate on that…
rn im using the button as Target and The text as anchor