Forum Discussion
Hi,
It is somewhat not clear what you described in your question.
Do you want to rename the same object in both Tests that you referred Or you have two different objects with same name [I don't think you can have 2 objects with same].
It would be better if you describe it more clear or snapshots would be better.
Hi Shankar,
Actually the case is for two different objects, same name is mapped and those objects are in different tests i.e., one object is in one test and other is in another test. For example, in Test 1 for OK button, the name is mapped as buttonOK and in Test 2 for Yes button, the mapped name is also as buttonOK. I hope you understand.
Thank you.
- tristaanogre9 years agoEsteemed Contributor
What it also sounds like is that your mapping is getting confused... the Yes button for some reason matches the criteria for the buttonOK. This basically means that when you mapped your buttonOK, you didn't use sufficiently unique identification properties to make sure that the objects are identified properly.
- AlexKaras9 years agoCommunity Hero
On the other hand, everything may be quite OK with the NameMapping:
-- If I remember it correctly, the default setting for NameMapping is to use Extended Find when possible;
-- So, it may be that both buttons have, say, buttonOK identifier but different captions (e.g. OK and Yes);
-- If such buttons are located on different web pages and mapped at the page level with Extended Find enabled in NameMapping, one mapping will match both buttons. (And, presumably, will even work :) )