Page 1 of 1

Adding values to the Path Build Options

Posted: Wed Sep 24, 2014 4:54 pm
by peterbonney
Hi,

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?

Thanks

Re: Adding values to the Path Build Options

Posted: Thu Sep 25, 2014 5:55 pm
by Support Team
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.

Regards,
Markus