Forum Discussion

JackS's avatar
14 years ago

WPF Treeview object displayed as object type "OutlineItem" - no wText

Hi,



I have a wpf treeview, and would like to check the value of one of the nodes using a property checkpoint. Selecting the treeview item whilst creating the checkpoint (or when viewing the object in the object properties window) indicates that the object is of type: "OutlineItem" rather than a "System.Windows.Controls.TreeView" or whatever a treeview is meant to be.



Basically - it means that there is no property containing the Text displayed in the treeview node.



I am using the trial version of TestComplete 7.52.



Any help as to what has gone wrong would be much appreciated, or how to check the wpf treeview node is displaying the correct text. (It is most likely an error on my part, but I am clueless).



Thanks in advance,

Jack

1 Reply

  • Hi,



    You need to use some native properties and methods of the target object. Try Text or Value or something similar. Also, you can check the object's fields.