Page 1 of 1

Update elements in repository within code

Posted: Mon May 21, 2012 10:40 pm
by erman
Hi,

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,

Eric

Re: Update elements in repository within code

Posted: Mon May 21, 2012 11:09 pm
by Ciege
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.