Forum Discussion
Abramova
Staff
14 years agoHi Ofer,
If the tab caption changes from one application run to another, you can use the asterisk (*) wildcard in place of the caption. For example:
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)["WaitWPFObject"]("TextBlock", "*", 10000)["Exists"])
For more information on using wildcards, please refer to http://smartbear.com/support/viewarticle/18943/.