Two similar anchors have different selectors

Hi All ,
am facing a problem while automating sales force ,
am working in the sand box instance. there am trying to create some record . for which am using anchor elements to fill the data (integrated anchor approach ). this works fine in sandbox. but the same selector with same anchor is not working on production. Reason being , idx is being added in production to the ANCHOR!!
now as i mentioned integrated anchor approach is the only solution for this screen as parent id property which uniquely defines all element changes every time.
am highly dependent on integrated anchor approach. when this does not work i am help less. find children is also not an option now !
@loginerror @ppr @Palaniyappan @Lahiru.Fernando