Forum Discussion

HirendraSingh's avatar
HirendraSingh
Contributor
2 days ago
Solved

TestComplete name mapping to map xpath with ID

Is there any way that TestComplete will map the object automatically with ID instead of other criteria as even though the object has a unique id but most of the time TestComplete maps it automaticall...
  • rraghvani's avatar
    rraghvani
    1 day ago

    When generating Name Mapping, TestComplete evaluates attributes based on stability and uniqueness. Here's a stable ID having 120 characters,

    Dynamic looking ID such as "ctl00_btnShowData", TestComplete may decide that it's auto generated or may change between runs and therefore not reliable. So it avoids using it, and instead chooses alternative selectors it considers more stable.

    Read Object Identification to get a better insight.