Page 1 of 1

Feature Request - Strip path

Posted: Wed Jan 05, 2011 3:25 pm
by sdaly
Hi

Can we have a button in spy which wipes attributes from the path. For example spy generates the path below.

/form/container[@caption='' and @controlid='59648']/form/element[@controlid='59648']/element[@controlid='59649']/element[@controlid='59664']/container/checkbox[@text='Pr&int Age']

I would like a button to press which would then make the path as below which I can then work with easier.
/form/container/form/element/element/element/container/checkbox[@text='Pr&int Age']

Thanks

Re: Feature Request - Strip path

Posted: Fri Jan 07, 2011 11:32 am
by Support Team
There is similar functionality in the Ranorex repository editor context menu, when you right click on a repository item. However, the "Abbreviate Item Path" menu item will not only remove attributes, but all steps/levels in the RanoreXPath. Your example will be abbreviated to the following:
//checkbox[@text='Pr&int Age']

With Ranorex 3.0 we will introduce a new RanoreXPath editor where you can easily select which attribute should show up in a path by checking/unchecking boxes next to each attribute. Nevertheless, I filed your issue as a feature request in our database.

Regards,
Alex
Ranorex Team

Re: Feature Request - Strip path

Posted: Fri Jul 13, 2012 10:22 pm
by sridharaiyer
How to undo the abbreviation?

Re: Feature Request - Strip path

Posted: Mon Jul 16, 2012 12:30 pm
by Support Team
Hi,

You can click on the "Undo" arrow, or is it grayed out?
Which Ranorex version are you using?
Do you have used the specific repo item in a recording before you clicked on "Abbreviate Item Path"?

Regards,
Markus
Ranorex Support Team