Forum Discussion
HKosova
13 years agoSmartBear Alumni (Retired)
Hi 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.
Related Content
- 4 months agoConradb
Recent Discussions
- 13 hours agotramuntana
- 3 days agoSlickRick