Hi @SHIVAMMISHRA6
did you try with the For Each UI Element Activity?, this is perfect for those kind of cases, give a try
Regards