cancel
Showing results for 
Search instead for 
Did you mean: 

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

JackS
Not applicable

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 1
YMinaev
Staff

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

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.
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors