Exemplo n.º 1
0
 public bool GetTreeItemNOTExists(string param, string parentTreeItem)
 {
     this.mUIAXCWindow = new UIAXCWindow();
     WinTreeItem uIParentTreeItem = new WinTreeItem(mUIAXCWindow);
     uIParentTreeItem.SearchProperties.Add("Name", parentTreeItem, PropertyExpressionOperator.Contains);
     uIParentTreeItem.WaitForControlReady();
     this.mUITreeItem = new WinTreeItem(uIParentTreeItem);
     mUITreeItem.SearchProperties.Add("Name", param, PropertyExpressionOperator.Contains);
     mUITreeItem.SearchConfigurations.Add(SearchConfiguration.ExpandWhileSearching);
     mUITreeItem.SearchConfigurations.Add(SearchConfiguration.NextSibling);
     if(mUITreeItem.WaitForControlNotExist())
     {
         return true;
     }
     else
     {
         return false;
     }
 }