Change requests: copy Repository path to clipboard

Ranorex Spy, Recorder, and Studio.
User avatar
Stub
Posts: 173
Joined: Fri Jul 15, 2016 1:35 pm

Change requests: copy Repository path to clipboard

Post by Stub » Mon Oct 24, 2016 2:48 pm

I'm not sure what the formal way to submit a change request is, but I find myself copying items in my Ranorex Studio project Repository to the clipboard in the hope that I can then paste a Repository path snippet into a text editor window (such as a user code module editor window, or notepad).

Sometimes my Repository items are fairly nested in a hierarchy. I was looking for a short-cut to get the full dotted-path item name into my code module. When I then want to make a Property that gives me a short-cut to this Repository item I often type up the path so I can more easily find it in the Repository code module in order to get the correct data type.

So I was hoping multiple clipboard objects could be stored in the clipboard offering different clipboard data formats, perhaps with a plain text format being the item path in the Repository. I daresay others might expect the RxPath. I'm just after the "Repo.Application.Window.SubWindow.Nested.Item" sort of name however.

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

Re: Change requests: copy Repository path to clipboard

Post by krstcs » Mon Oct 24, 2016 5:43 pm

Feature requests should be sent directly to the Ranorex team at [email protected]. They do not accept feature requests through the forums.

Typically you would want to NOT use hard-coded XPaths in your user code because that means there are now multiple places that you would need to update the path when it changes. You should instead be using the repo item's RXPath properties to get the RXPath at runtime (from http://www.ranorex.com/Documentation/Ranorex/):

RepoItemInfo.Path
RepoItemInto.AbsolutePath
Shortcuts usually aren't...

User avatar
Stub
Posts: 173
Joined: Fri Jul 15, 2016 1:35 pm

Re: Change requests: copy Repository path to clipboard

Post by Stub » Tue Oct 25, 2016 8:18 am

Okay, I'll mail them, thanks for that!

To be clear, I'm not using RxPaths in my code. I'm referencing the Repository items. But with a bit of nesting a hierarchy forms.