Senior Member

How to get Node's name in CustomTreeList



I'm new in TestComplete

Sorry in advance I dont speach english very well :-)


So, I work in a desktop application which contains a CustomTreeList object. I just try to know how to get any node's name (Label) but I still failed. I use VBScript language to write script.


I able to count how many nodes inside CustomTreeList with :




or (in only first column)



I already able to get to any node in the depth of  CustomTreeList object with "wChildView" command, for eg :

(...).Afx.HwndSource_CommandDispatcherControl.WinFormsAdapter.NavigationControl.splitContainerControl1.SplitGroupPanel.navigationTree.wChildView(3).wChildView(0).ClickCell(1, "Name")


And now, I need to know how can I get node's name.


Can you help me please.


Thanks a lot

Posts: 4,657
Topics: 42
Kudos: 1,857
Solutions: 367
Registered: ‎11-30-2009

Re: How to get Node's name in CustomTreeList

Probably the best place to start is to look at how TestComplete works with developer express controls, specifically the tree list.  Read up on it at


Beyond that, I'm not fully experience with using that set of controls so I don't know specifics.  The best advice I can give you is to start exploring the objects, looking for native methods and properties that will get you the node name. I believe you're going to want to find the "Caption" property.


So.... the question is:


Are you looking to find the caption of a node for which you don't already know the name?

Or are you looking to find the node that matches the captionyou already know?


The latter is easier... you loop through all the nodes using a for or while loop until you find a matching caption.  The former.... not so easy. Smiley Wink

Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Extensions available
Community Leaders Program