shivam
6 years agoOccasional Contributor
Facing "Ambiguous object recognition" warning for several objects
I am facing "Ambiguous recognition of tested object" warning several times on various pages and objects of my web application.
I have tried to improve the mapping information for these objects by adding some additional attributes in identification properties. But it does not help. And this problem causes other issues like too much time for identifying, other times script fails!
I have seen in Object browser that TestComplete identifies the HTML hierarchy as panels mostly (no matter if it is DIV,SPAN,INPUT,KENDOBOX, etc). And it will be ridiculous to add most of the parent hierarchy into NameMapping!
Also, FindChild method is not working as parent itself does not have Identifiable attributes (as per Tool's OI).
Does anyone know a solution to this?
TIA.
Hi Poornima,
Try these:
- Increase the 'Auto wait timeout period' in project settings
- Improve mapping information of target object: by adding some additional attributes in identification properties
- Improve mapping information of parents (of the target object): a) by by adding some additional attributes in identification properties, b) by adding a greater number of nodes in object tree hierarchy
- Disable the 'Show ambiguous warning' for the object
Note: Step 4 does not solve the problem just masks the warning in logs. And it is quite possible that your script may fail when run on remote machine or under some different environment and configuration (like screen resolution)
P.S : I am still working for the concrete solution (or you can say, a satisfying workaround) to this problem.
BR,
Shivam