Exemple #1
0
        public void Remove()
        {
            Window dialogue = OpenGroupsDialogue();

            IUIItem       textBox = dialogue.Get(SearchCriteria.ByControlType(ControlType.TreeItem));
            Win32TreeNode node    = (Win32TreeNode)textBox;
            TreeNode      myNode  = node.Nodes[0];

            myNode.Click();

            dialogue.Get <Button>("uxDeleteAddressButton").Click();
            Window deleteGroup = dialogue.ModalWindow("Delete group");

            deleteGroup.Get <Button>("uxOKAddressButton").Click();
            CloseGroupsDialogue(dialogue);
        }
Exemple #2
0
        public void CheckGroupList()
        {
            Window dialogue = OpenGroupsDialogue();

            IUIItem textBox = dialogue.Get(SearchCriteria.ByControlType(ControlType.TreeItem));

            Win32TreeNode node  = (Win32TreeNode)textBox;
            int           count = node.Nodes.Count();

            if (count <= 1)
            {
                CloseGroupsDialogue(dialogue);
                GroupData newGroup = new GroupData("Test123");
                Add(newGroup);
            }
            else
            {
                CloseGroupsDialogue(dialogue);
            }
        }