Validating two different selectors at a time

Hi Team,

i was in assumption that parallel activity refers two different selectors that belongs to a single window or application, but i understood that Parallel activity is two check for two different applications parallely.

is there any activity that validates the window based on either of two below selectors and clicks accordingly

i thought the below image would work as i expected


but after getting through parallel activity it was not satisfying my requirement.

pls help

@devasaiprasad_K,

You should be using Pick Branch activity.

Thanks,
Ashok :slightly_smiling_face:

Use Check App State inside each branch of the parallel. Then inside each Check App State’s “appears” section, put your Type Into.

Also, I assume you need to exit the Parallel and continue after one of the two branches is performed. If so, go to the Parallel’s properties, put your cursor into the condition property, press CTRL+K, give a new variable name like CompletionCondition.

Then after each Type Into, put an Assign CompletionCondition = True

Then when one of the Check App States finds its element and performs its Type Into, the condition will be true and the parallel will cancel the other branches and continue.

Here is a tutorial I made on using Parallel:

Maybe you could try wildcarding the selector? Seems it would work based on your example. In case of a more complicated case, you have also the option to use regex.

Hi @devasaiprasad_K

When executing first type into activity with first selector is it throwing any exception if it couldn’t find the element. Then only you want to execute the Second selector Type into.

Am I right? If wrong could you be more specifc.

Yes you are right! pls let me know the knowledge you had on this.

This is the solution: