Ranorex path runtime value

Ask general questions here.
Mayra
Posts: 68
Joined: Mon Dec 16, 2013 5:27 am

Ranorex path runtime value

Post by Mayra » Tue Feb 04, 2014 1:56 am

Hi,
I want to get the runtime of the ranorex path. I am using variables in my path and when I see the log I can only look at $<variableName> , basically the way that it is in the repository.
How can I achieve that?
Thanks

User avatar
rprehm
Posts: 24
Joined: Tue Dec 17, 2013 6:43 pm

Re: Ranorex path runtime value

Post by rprehm » Tue Feb 04, 2014 1:59 pm

Hi Mayra,

I suppose you use:

Code: Select all

repo.Anything.ItemInfo.AbsolutePath.ToString()
In order to get the runtime value of the variable please use:

Code: Select all

repo.Anything.ItemInfo.AbsolutePath.ToResolvedString()
or

Code: Select all

repo.Anything.Item.GetPath().ToString()
Regards,
Robert

Mayra
Posts: 68
Joined: Mon Dec 16, 2013 5:27 am

Re: Ranorex path runtime value

Post by Mayra » Tue Feb 04, 2014 11:12 pm

Thanks, that is what I needed.