Help with VLCNETObject (tree) and finding its items
Hello all,
I am trying to figure out if I can write a script to try and select an item in a tree view object. Unfortunately, the tree view in question doesn't have SelectItem()/ClickItem() methods in it.
when looking at the Object Browser, the Tree in question is a VLCNETObject. So this is where i though i can write a simple experimental script (python) to see if i can find the 'child' of the object. but to no avail :/
I have set the screenshots below to show the application's treeview and what i can see via Accessibility Insight - see image 0.png
The simple script I have is basically go find the treeview object in question and use the method FindChild and if found click on it.
The issue are:
- i cannot find the child of VLCNETObject tree
- What do i need to enter for the PropValues in
TestObj.FindChild(PropNames, PropValues, Depth, RefreshTree)
- its pointed in the image 1.png
- What do i need to enter for the PropValues in
Advise seeked: if this kind of components that dont have ClickItem() or SelectItem for treeview, how can i go about it in test complete without using the OCR action?
Any help is much appreciated. note: i am no developer
Regards
You've written the following code,
targetItem = vlcNetTree.FindChild("(12) Well Test 1", "*", 3)Where parameters are -
PropNames - A property or an array of properties by which the method will search for an object.
PropValues - A value of a single property or an array of values of properties that the PropNames parameter specifies.
Depth - An integer value that sets the maximum level of the object’s hierarchy that the method will reach while searching for the specified object.
Hint: Using the Object Browser, where is the Property Name of "(12) Well Test 1"? And where is the Property Value of "*"? Refer to the FindChild method examples, and note the parameters