Forum Discussion

alexey_ostapov's avatar
alexey_ostapov
New Contributor
11 years ago

Tree Control recognition

Hi all,



I've faced with issue in App I'm testing.

I've got Tree Control (Dev team says it is inherited from standard Windows SysTreeView32,it looks like standard Windows tree). This Tree Control has WndClass name "System Tree Control".



Anyway, TestComplete cannot recognize it as Tree. I don't have such methods as ClickItem(), SelectItem(), etc.



The question is how can I make TestComplete know that it works with standard Tree? I need something like force type sellection in object browser. Or type casting (like next sample):



var tree = (Win32TreeView) Aliases.MyApp.System_Tree_Control; //casting non standard tree to standard

tree.ClickItem(); //using tree as standard one




Looking forward to any piece of advice!

  • Hi Alex,


     


    If the control used in your app is inherited from a control that is specially supported by TestComplete, you can try using the Object Mapping feature.