Hi,
Is there a way to set the base path of an application in the element repository from my test code? We run several instances of the application under test and have to define the application form by unique rxpaths.
To eliminate the chance of any problems I also want to do that when using elements from the repository.
Is this possible? I don't want to change any code in my generated .cs file as it will be changing for a while yet.
Thanks
Chris
Programmatically set base path on repository?
-
- Posts: 49
- Joined: Thu Aug 20, 2009 11:28 am
Programmatically set base path on repository?
Chris George
Test Engineer
Red Gate Software Ltd
Cambridge
Test Engineer
Red Gate Software Ltd
Cambridge
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Programmatically set base path on repository?
Chris,
You can set the BasePath property on the folder you wish to modify e.g.:
You can also change timeouts and caching behavior in the same manner.
Michael
Ranorex Team
You can set the BasePath property on the folder you wish to modify e.g.:
yourRepo.FormApp1.BasePath = "/form[@processname='yourapp' and @title='...'";The basepath can be changed for every rooted or application folder.
You can also change timeouts and caching behavior in the same manner.
Michael
Ranorex Team
-
- Posts: 49
- Joined: Thu Aug 20, 2009 11:28 am
Re: Programmatically set base path on repository?
ah cool!
Thanks guys!

Chris George
Test Engineer
Red Gate Software Ltd
Cambridge
Test Engineer
Red Gate Software Ltd
Cambridge