Forum Discussion
AlexeyKolosov
Staff
16 years agoHi Christophe,
1) Is it possible to check in only once the entire contents of my object "treeWidget" or should I use "For" loop ?
As a Table Checkpoint is not applied to this control, you need to manually write script code that iterates through items and verify them. If you send us a sample application with this control, we'll help you do this.
2) I can retrieve the number of elements in the current node : MyTree = Aliases.testComplete5.MainWindow.centralWidget.treeWidget.wItems.Count
Is it possible to returns the number of sub elements in a element ?
You should be able to do it as follows:
Aliases.testComplete5.MainWindow.centralWidget.treeWidget.wItems.Item(0).Items.Count