Data Extraction from Automation Anywhere

I have written a task bot logic to extract the data from ecommerce website, where the data is spanning in multiple pages.
Its working good for that search item in the site.
I have put in a loop and now changed the search item every time, Now its not reading the similar data.
Please help me with this.
Is there any chance of chnaging selectors in Automation anywhere?