Page 1 of 1

Change requests: copy Repository path to clipboard

Posted: Mon Oct 24, 2016 2:48 pm
by Stub
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.

Re: Change requests: copy Repository path to clipboard

Posted: Mon Oct 24, 2016 5:43 pm
by krstcs
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

Re: Change requests: copy Repository path to clipboard

Posted: Tue Oct 25, 2016 8:18 am
by Stub
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.