Forum Discussion
HKosova
Alumni
14 years agoHi Pasha,
Try inserting the Refresh method call before doing the checkpoints:
Does this help?
As far as I understand, if new tree items are added dynamically at the runtime, the "cached" object reference stored in the treeview_acc variable may not detect newly added child objects automatically. So, the forced Refresh should do the trick.
Try inserting the Refresh method call before doing the checkpoints:
if(i<9)
{
treeview_acc.Refresh();
aqObject.CheckProperty(treeview_acc.WPFObject("TreeViewItem", "", (i+1)).DataContext, "Name", 0, "IN00");
...
Does this help?
As far as I understand, if new tree items are added dynamically at the runtime, the "cached" object reference stored in the treeview_acc variable may not detect newly added child objects automatically. So, the forced Refresh should do the trick.