Update elements in repository within code

Ask general questions here.
Posts: 15
Joined: Tue May 15, 2012 3:53 pm

Update elements in repository within code

Post by erman » Mon May 21, 2012 10:40 pm


I'm new to Ranorex, but have used other UI automation tools, like QTP in the past. My question is if I have an element in the repository, such as checkbox, is it possible to update the attributes of the saved element during runtime(ie. within the C# code)? Basically, looking for the SetTO property that QTP supports.

There are many checkboxes with the applications UI, so I would like to create a generic checkbox element in the repository, and update this element during execution, so that different checkboxes can be selected.

Thanks for an ideas,


User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Update elements in repository within code

Post by Ciege » Mon May 21, 2012 11:09 pm

If you don't want to use the repository to store your specific elements but would rather have it contain a generic element that can be updated at runtime, then why not just write your own method that accepts the checkbox identifier that you want to click? This is basically how I work, I don't use the repository at all.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!