Multiple Element Check Exists


#1

Upon searching on a web page there are two possible outcome -

  1. Search Results Page Appears.
  2. The corresponding data page appears.

The flow need to take different routes for different outcomes above.
Currently I am using Element Exists Activity to look for one of them and then setting an if condition to divert paths. But in this case it takes time set by us to look for the element before proceeding.
Is there a way where it searches for both elements together at the same time and takes the respective path depending on what element it finds?


#2

@Raviteja94,Use parallel activity and place multiple element exists in it


#3

@sreekanth, In this case since only one of them will be found, won’t the other throw an error.


#4

Element exists returns only true or false,Why will it throw an error? @Raviteja94


#5

Got it. Thanks.