Forum Discussion
AlexanderM
15 years agoStaff
Hello Rachael,
The idea Syed suggested is correct:
>>> The combination of minimum number of properties that can uniquely identify the control Or something else
So, in your case, it looks like both pages meet the same minimum set of recognition criteria TestComplete uses during the recording. As a result, both pages are represented by the same Name Mapping item. However, during the script execution, the second page does not match the existing mapping criteria for some reason. So, please follow Syed's suggestion and check the mapping criteria - most probably, you will need to map the second page as an individual Name Mapping item and correct the recorded script.
Also, you can try refreshing the objects tree before the problematic line - it may appear that refreshing the references is enough to solve the problem:
NameMapping.iexplore.pagePage1.Refresh
NameMapping.iexplore.pagePage1.RefreshMappingInfo