I'm automating(using record) a functional scenario using TestComplete. The NameMapping future is automatically adding elements to repository and when I run the script in other browser the tool is unable to find few elements. When I searched for root cause i found that NameMapping future is giving different names for parent objects of particular element and for some elements the hierarchy is getting changed from browser to browser. How this could be possible? How can we avoid this to do cross-browser testing?
For example, in the demo site "http://secure.smartbearsoftware.com/samples/TestComplete11/WebOrders/Login.aspx" the tool gave following aliases for a same object: ZIP field in "Edit Orders" page.