Forum Discussion
AlexeyKolosov
15 years agoStaff
Hi,
First of all, please note that you can input the needed path directly into an edit box of your application (I suppose that there should be an edit box containing the selected path in the window). Also, if your application uses a standard Windows file/folder selection dialog, you should use the OpenFile method to open the file/folder located by the mentioned path.
I dont find the way to give actual path for this.e,g. C:\Data so that I can give ClickItem("|C:|Data").
The tree node can be accessed by using nodes' captions as well:
treeview.ClickItem("|C:|Data");
where 'C:' is the root, and 'Data' is its child node. For more information, refer to the 'ClickItem Action (TreeView Controls)' help topic . Does it work?
there is no action recorded for expanding node
We tried to record the expanding action over the WPF TreeView sample from the Windows Client .Net site: the action was recorded successfully.
Please provide us with the recorded script so we can try to investigate the issue. Also, tell us the ClrFullClassName property value and version of the control you are testing.
I can find Expand collapse method for wItem, but not for Items. What is difference between this two?
The first one provides you with access to a collection of tree view items, the second - to individual items of the tested control. For more information, refer to the 'wItems Property (TreeView Controls)' and 'Item Property (TreeViewItemCollection Objects)' help topics.
You can also use the ExpandItem method for your WPFTreeView.
Related Content
- 11 years ago
Recent Discussions
- 20 hours ago
- 20 hours ago
- 5 days ago