Is it possible to get the absolute RxPath out of a RepoItemInfo?
The "Path" property of it just returns the relative path.
I think it would be a nice feature to get absolute paths from Info objects.
Regards
Max
Absolute RxPath from RepoItemInfo
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Absolute RxPath from RepoItemInfo
In the upcoming Ranorex version 2.2.2 there is a new property RepoItemInfo.AbsolutePath that returns the absolute path of the repository item. With previous version, please, use the following code to generate the absolute path:
Alex
Ranorex Support Team
using Ranorex.Core.Repository; ... RepoItemInfo info = myRepo.MyFolder.MyItemInfo; RxPath absolutePath = info.Path; RepoGenBaseFolder folder = info.ParentFolder; while (folder != null) { absolutePath = RxPath.Concat(folder.BasePath, absolutePath); folder = info.ParentFolder; }Regards,
Alex
Ranorex Support Team