This got resolved by changing the scope of item variable in Find children activity from for each loop to whole sequence and changing Type argument property of For each activity to UiElement.
This got resolved by changing the scope of item variable in Find children activity from for each loop to whole sequence and changing Type argument property of For each activity to UiElement.