Knowledge Article :: Application Issue in UAT & Production :: Element Identifiers


#1

Issue:

Application behaves differently in UAT and production with regards to element identifiers

Solution:

If DOM (document object model) structure of the said application’s website has some similarities on both UAT and Production in that case we can find out common XPath which will work on both the UAT and Production server.

Need to create common XPath on UAT or production by using different methods like start-with, contains, not contains, relative XPath, etc to find out common XPath.

Also ensure that XPath is a perfect match on both UAT and production environments.

Note: If DOM structure application website is completely different on UAT and Production in that case this solution will not help.