Nitin
It is working for only one scenario. When the search term is different, it's not working..
As, in scenario one, 36 was the result. It looks for 36 in the 2nd search too!
Can you check with the selectors once, because it can be scenario when your aaname or text attribute is being assigned with static value