05-19-2017 02:06 AM
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 :
And now, I need to know how can I get node's name.
Can you help me please.
Thanks a lot
05-30-2017 05:20 AM
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 https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/...
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.