Ejemplo n.º 1
0
 private static WpfTreeItem GetChild(UITestControlCollection nodes, string name)
 {
     return(nodes.OfType <WpfTreeItem>().Find(treeItem => new WpfText(treeItem).Name == name));
 }
 private WpfListItem GetPlayerListItem(string playerName)
 {
     return((WpfListItem)PlayerListItems.OfType <WpfListItem>().FirstOrDefault(i => ((WpfListItem)i).DisplayText.Contains(playerName)));
 }