Forum Discussion
Oferv
13 years agoSuper Contributor
Ok, and what if my WPFObject looks like this
if(Aliases["FusionDesktop"]["HwndSource_MainWindow"]["MainWindow"]["Grid"]["TabControl"]["Grid"]["WPFObject"]("ContentPanel")["WPFObject"]("PART_SelectedContentHost")["WPFObject"]("AssemblyViewTabControl")["WPFObject"]("Grid", "", 1)["WPFObject"]("Grid", "", 1)["WPFObject"]("UserControl")["WPFObject"]("UserControl")["WPFObject"]("TabItem", "", NumberOfTabs)["WPFObject"]("UserControl")["WPFObject"]("StackPanel", "", 1)["WPFObject"]("TextBlock", FileWithoutExt, 1)["Exists"])
the Bold part is actually the part i need to wait for untill keep on running now, the FileWithoutExt is a tab added to the application has its unique name.i tried to wait for WaitWPFObject("TextBlock",10000) but it didn't work.
what's the syntax for waiting this kind of object?
Thanks
if(Aliases["FusionDesktop"]["HwndSource_MainWindow"]["MainWindow"]["Grid"]["TabControl"]["Grid"]["WPFObject"]("ContentPanel")["WPFObject"]("PART_SelectedContentHost")["WPFObject"]("AssemblyViewTabControl")["WPFObject"]("Grid", "", 1)["WPFObject"]("Grid", "", 1)["WPFObject"]("UserControl")["WPFObject"]("UserControl")["WPFObject"]("TabItem", "", NumberOfTabs)["WPFObject"]("UserControl")["WPFObject"]("StackPanel", "", 1)["WPFObject"]("TextBlock", FileWithoutExt, 1)["Exists"])
the Bold part is actually the part i need to wait for untill keep on running now, the FileWithoutExt is a tab added to the application has its unique name.i tried to wait for WaitWPFObject("TextBlock",10000) but it didn't work.
what's the syntax for waiting this kind of object?
Thanks
Related Content
- 11 years ago
- 9 years ago
Recent Discussions
- 4 days ago
- 4 days ago
- 7 days ago