Mapping dynamic UI elements
If software is based on dynamic content it is typically based on dynamic identifiers. This might lead to problems in object recognition as these identifiers will be newly generated every time an element will be displayed. One way to overcome this challenge is to manually adapt the repository after recording a test scenario which of course is very time-consuming. The recommended way of handling dynamic content is to use RanoreXPath weight rules to optimize the object recognition for specific dynamic frameworks.
In this chapter
What are RanoreXPath weight rules?
A path weight rule sets the weight of a specific attribute for a specific capability meeting a set of defined conditions. The weight will be used when building up the RanoreXPath. The attribute with the highest weight and a value other than empty will be taken for the identification of the UI element.
The RanoreXPath Weight Rules can be accessed via the ‘RanoreXPath Weight Rules’ editor (‘Settings -> Advanced -> Edit Path Weights’ or ‘Ranorex Spy -> Edit Path Weights’).
Using the RanoreXPath Weight Rules can assist you in automatically creating a robust repository which is the base of a robust test automation framework.