Page 1 of 1

Custom Controls

Posted: Fri Aug 18, 2006 5:40 am
by obaid_malik
Can Ranorex be used to automate GUI testing for windows custom controls. Like if someone has made his own version of Windows textbox, can Ranorex identifies it?

Posted: Fri Aug 18, 2006 7:57 pm
by webops
Yes, you can use Ranorex to automate custom controls.
Ranorex supports Active Accessibility, so you (or the developer) should set some properties of the user control in Visual Studio.

Here are the most important rules:
  • You should set a unique control name for every control in your form and for every subcontrol in your user control
  • You should set a unique AccessibleName for every control and for every item in the control
Use the Form.Find functions to find a control by control name in a form and the Element.FindChild functions to find an element by AccessibleName and AccessibleRole. You should also set the AccessibleRole property for every item.
RanorexSpy shows the accessible properties in the element box.

Jenö Herget
Ranorex Team