Edit Multiple Repository items xpath

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 3
Joined: Fri Jun 21, 2013 10:54 am

Edit Multiple Repository items xpath

Post by CPTolin » Tue Jul 02, 2013 12:56 pm

IE 9
Ranorex Studio 4.04
I have a large number of repository items that are very similar, as they correspond to the same image, but at different locations. The program i am testing againt generates large xpaths due to the structure i.e.

(This is on 99 generation tree )

The top section of the xpath is subject to regular change and so often cannot locate the items reliably. I would like to change the items to cut out the section between the body and the table tag for all of these elements. Is there a more expedient way that editing each individual element.
I have thought about a rooted folder, but then i would still have to edit each item individually to remove the rooted section.
NB. as the image is the same, abbreviate item path is not appropriate as then you cannot get the specific item on the page.

Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Edit Multiple Repository items xpath

Post by krstcs » Tue Jul 02, 2013 1:29 pm

You could edit the repository file (.rxrep) in another editor, such as Notepad++ and do a find/replace for all of the stuff you want to remove.

You might want to close Ranorex first, just so it doesn't interfere.

I have done this several times just to make editing the repository easier.
Shortcuts usually aren't...