Forum Discussion

LAB's avatar
LAB
Contributor
6 years ago
Solved

Inconsistent Mapping

I'm trying to map the various tabs within a website, and even though the objects are named consistently, for some reason name mapping isn't.   Mapping the first button, test complete recognizes tha...
  • tristaanogre's avatar
    6 years ago

    Go to Tools | Options | Engines | NameMapping.  There's an option there called "Use extended find when possible".  Turn that off.

     

    Extended Find is a VERY useful feature in NameMapping (see https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/managing/modifying/extended-search-criteria.html for details).  However, when it's turned on by default, it can create confusion because TestComplete tries to "collapse" panels dependant upon what it "knows" at the time and what you are using.  So, mapping one object, it may use extended find with one set of panels... mapping another object, it may decide that some of the panels are not necessary and use extended find differently.  This creates the confusing hierarchy you described.

     

    So... my recommendation is to turn the option off so that TestComplete does not automatically assign Extended Find... but please, certainly use it where it makes sense for you to use it.  Manually turn it on (or off) as you map components to "collapse" the hierarchy tree.