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
Feature Request - Strip path
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Feature Request - Strip path
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
//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
-
- Posts: 3
- Joined: Fri Jul 13, 2012 10:16 pm
Re: Feature Request - Strip path
How to undo the abbreviation?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Feature Request - Strip path
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
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