Adding values to the Path Build Options

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 10
Joined: Tue Jun 25, 2013 2:13 pm

Adding values to the Path Build Options

Post by peterbonney » Wed Sep 24, 2014 4:54 pm


I'm looking to see if it is possible to add values to the Edit Path Build Options List, In Global Settings.

Our web app uses data-member-id within the DIV to identify an element, and if possible, i want to add this to the list of options used for identification (and also give it a high wight)

Can anyone advise me how to do this?


User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Adding values to the Path Build Options

Post by Support Team » Thu Sep 25, 2014 5:55 pm

Hi Peter,

You could for instance create a RanoreXPath Weight Rule to give the specific data-member-id attribute a higher value.
So track the element with the specific attribute data-member-id which is listed in the Dynamic section of the Overview tab of Ranorex Spy and open the SETTINGS.. window in Spy. When you opened the window click on the Advanced tab and then click on the Edit Path Weights... button.
In this window create a new rule, you just need to click on the green cross to create a new one.
Now add a name for the rule, select dynamic as Capability, data-member-id as Attribute and set the Weight to at least 150.
After you clicked on Apply Ranorex Spy should create a RxPath where your custom attribute is used.
For more information on how to create rules please see: Automated Testing and Dynamic IDs.