Forum Discussion
shankar_r
8 years agoCommunity Hero
Tree View object has a property called Expended/wExpended using this you can do like below,
if(Aliases.App.win_MainWindow.treeView.WaitProperty("Expended or wExpended",true,10000)){
Log.Message("Tree view loaded");
}
endorium
8 years agoFrequent Contributor
Thanks for the reply.
So I have the below:
"treeViewAlias.ExpandItem(folderPath, 30000);
treeViewAlias.ClickItem(folderPath)
Log["Message"]("Folder " + folderPath + " was selected.");"
But it does not wait 30 seconds for it to expand and instead fails. The issue is that it can expand Desktop straight away. Its expanding Network that takes time. Instead of waiting for it then expanding it, it just fails as it cannot see pc11111 until network is expanded.
|Desktop|Network|PC111111|LIS Folders|Lis_Import