Page 1 of 1

Element tree different to old Ranorex

Posted: Wed Nov 07, 2012 1:04 pm
by jabelshauser
Some Elements are not available in new Ranorex, there are major differences in the element tree between Ranorex 1.5.3 & Ranorex 3.3.2

Ranorex 1.5.3.6580 Elementsview + succesful FindChild-Method:
Name = Advanced Parameterization, Value = , Role = PageTab
...
Name = Advanced Parameterization, Value = , Role = Window
...
Name = ApplicationState, Value = Running, Role = None
...

RanorexHelper.FindChild((_obj as Control).Element, Role.None, "ApplicationState")

Any Idea ?

Regards Jörg

Re: Element tree different to old Ranorex

Posted: Thu Nov 08, 2012 11:48 am
by Support Team
Hello,

Ranorex was redesigned in version 2.0.
A lot of changes have been implemented in later versions in order to meet our customer needs.

Is it possible to recognize these elements by using 'Ranorex Spy'?
Did you get any error messages during your test?

Regards,
Markus (T)

Re: Element tree different to old Ranorex

Posted: Thu Nov 08, 2012 1:05 pm
by jabelshauser
not, it is not possible, but wasn't possible with old Spy too (but found with the FindChild-method).
The Elements are only accessible via msaa, in msaa explorer the elements occurs
no error messages occurs

Some more Hints:
- .Net 1.1 Control, but runs under .Net 2.0.
- Not possible to get an Accessible instance of the Control
- 'ApplicationState' (the element i am looking for) is implemented as AccessibleObject and is an Sub-Element of a Custom Control

Regards,
Jörg

Re: Element tree different to old Ranorex

Posted: Fri Nov 09, 2012 1:55 pm
by Support Team
Hello,

Could you please send us a Snapshot of your application under test?
(Take a look at our section Creating Ranorex Snapshot Files in our User Guide.)

Regards,
Markus (T)