I want to use parallel activity but i dont want to execute all the branches. My different branches in parallel activity have different element exist. I want that if one element is found it should execute that branch and should not execute other branches.
-Drag a Parallel activity onto your workflow
-Add Branches: Within the Parallel activity, add the branches that you want to run in parallel.
-In Each Branch:
Add an “Element Exists” activity (or a suitable activity for checking the existence of an element) in each branch.
-Set Conditions:
Set the condition for each branch based on the result of the “Element Exists” activity. For example, if you are checking for the existence of an element with the UiPath selector.
ElementExists("myElement") = True
If this condition is true, the activities within that branch will be executed.
-Configure Else Branch (Optional)
If you want to handle the case where none of the elements are found, you can add an “Else” branch to the Parallel activity.
It may be better to use Parallel activity to only identify which element exists as the following.
(Please set True at Condition property of Parallel activity. It will exit if one of branch is completed)