Feature Request - Strip path

Ask general questions here.
User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Feature Request - Strip path

Post by sdaly » Wed Jan 05, 2011 3:25 pm

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

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

Re: Feature Request - Strip path

Post by Support Team » Fri Jan 07, 2011 11:32 am

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

sridharaiyer
Posts: 3
Joined: Fri Jul 13, 2012 10:16 pm

Re: Feature Request - Strip path

Post by sridharaiyer » Fri Jul 13, 2012 10:22 pm

How to undo the abbreviation?

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

Re: Feature Request - Strip path

Post by Support Team » Mon Jul 16, 2012 12:30 pm

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