public Complete_AddClientCase(Application app, Model_AddClientCase clientDetails)
        {
            application = app;

            List <Window> windows = windowTools.GetWindows(application);
            Window        window  = windowTools.GetWindow(windows, "AddClientCase");

            UIItemCollection items = windowTools.GetWindowItems(window);

            windowTools.PostToComboBoxes(items, clientDetails.mandatoryComboBoxes);
            windowTools.PostToTextBoxes(items, clientDetails.mandatoryTextBoxes);

            windowTools.PostToDatePicker(items, clientDetails.mandatoryDatePickers, window);
            windowTools.PostToTextBoxes(items, clientDetails.optionalTextBoxes);
            windowTools.PostToComboBoxes(items, clientDetails.optionalComboBoxes);
            windowTools.PostToDatePicker(items, clientDetails.optionalDatePickers, window);

            //Note: GeoCode cannot be manually entered, code below solves issue
            window.Items[26].DoubleClick();     //Find button sets GeoCode after address details are entered
            windows = application.GetWindows(); //Find EditAddressFindByMap
            windows[3].Items[1].DoubleClick();  //DoubleClick OkButton

            Button okButton = windowTools.GetButton(window, SearchCriteria.ByAutomationId("okButton"));

            windowTools.DoubleClickIUItem(okButton);
        }
Exemplo n.º 2
0
        public Load_ClientCaseSearch(Application application)
        {
            WindowTools windowTools  = new WindowTools();
            Window      window       = windowTools.GetWindow(application, SearchCriteria.ByAutomationId("HomeHealthDesktop"));
            Button      clientButton = windowTools.GetButton(window, SearchCriteria.ByText("Clients"));

            windowTools.DoubleClickIUItem(clientButton);
        }
        public Search_ClientCaseSearch(Application application, string searchText)
        {
            WindowTools windowTools = new WindowTools();

            List <Window>  windows = windowTools.GetWindows(application);
            Window         window  = windowTools.GetWindow(windows, "ClientCaseSearch");
            WinFormTextBox textBox = windowTools.GetIUIItem <WinFormTextBox>(window, SearchCriteria.ByAutomationId("criteria"));

            windowTools.PostText(textBox, searchText);
            Button lastNameButton = windowTools.GetButton(window, SearchCriteria.ByAutomationId("lastNameButton"));

            windowTools.DoubleClickIUItem(lastNameButton);
            windows = windowTools.GetWindows(application);
            if (windows.Count > 2)
            {
                windows[2].Items[0].DoubleClick();
                Button newClientButton = windowTools.GetButton(window, SearchCriteria.ByAutomationId("newClientButton"));
                windowTools.DoubleClickIUItem(newClientButton);
            }
        }
Exemplo n.º 4
0
        public In_ClientCaseSearch_SelectClient(Application application, string clientName)
        {
            WindowTools   windowTools = new WindowTools();
            List <Window> windows     = windowTools.GetWindows(application);

            Window      window   = windowTools.GetWindow(windows, "ClientCaseSearch");
            ListView    listView = windowTools.GetListView(window, SearchCriteria.ByAutomationId("listView"));
            ListViewRow result   = windowTools.SelectListViewRowName(listView, clientName);

            Assert.IsNotNull(result, "Client Name Not Found In ClientCaseSearch List View.");
            windowTools.DoubleClickIUItem(result);
        }
        public In_Desktop_Use_ClientNoteBook_Load_EditCarePlan(Application application)
        {
            WindowTools    windowTools = new WindowTools();
            List <Window>  windows     = windowTools.GetWindows(application);
            Window         window      = windowTools.GetWindow(windows, "HomeHealthDesktop");
            List <IUIItem> tabs        = windowTools.GetIUIItemList <Tab>(window);
            Tab            tab         = (Tab)tabs[1]; //tabs have generic name tabControl, requires ordinal selection

            windowTools.GetAndSelectTabPage(tab, "Services / Care Plans");
            Button EditCarePlan = windowTools.GetButton(window, "Edit Care Plan");

            windowTools.DoubleClickIUItem(EditCarePlan);
        }
        public Login(Application application)
        {
            WindowTools    windowTools     = new WindowTools();
            Window         window          = windowTools.GetWindow(application, "Login");
            WinFormTextBox usernameTextBox = windowTools.GetIUIItem <WinFormTextBox>(window, SearchCriteria.ByAutomationId("username"));
            WinFormTextBox passwordTextBox = windowTools.GetIUIItem <WinFormTextBox>(window, SearchCriteria.ByAutomationId("password"));
            Button         okButton        = windowTools.GetButton(window, SearchCriteria.ByAutomationId("okButton"));


            windowTools.ClickIUIItem(usernameTextBox);
            windowTools.PostText(usernameTextBox, username);
            windowTools.ClickIUIItem(passwordTextBox);
            windowTools.PostText(passwordTextBox, password);
            windowTools.DoubleClickIUItem(okButton);
        }
        public SelectFacility(Application application, string facilityName)
        {
            WindowTools windowTools = new WindowTools();

            Window      window = windowTools.GetWindow(application, "Select Facility");
            RadioButton facilityRadioButton = windowTools.GetRadioButton(window, SearchCriteria.ByAutomationId("facilityRadioButton"));

            windowTools.ClickIUIItem(facilityRadioButton);
            ListBox facilityFilter = windowTools.GetListBox(window, SearchCriteria.ByAutomationId("ListBox"));

            windowTools.SelectListBoxItem(facilityFilter, "Any");
            ListView    facilityList = windowTools.GetListView(window, SearchCriteria.ByAutomationId("listView"));
            ListViewRow row          = windowTools.SelectListViewRowName(facilityList, facilityName);

            windowTools.DoubleClickIUItem(row);
        }
Exemplo n.º 8
0
        public In_Desktop_Use_ClientNoteBook_Load_SchedulingAssistant(Application application)
        {
            WindowTools    windowTools = new WindowTools();
            List <Window>  windows     = windowTools.GetWindows(application);
            Window         window      = windowTools.GetWindow(windows, "HomeHealthDesktop");
            List <IUIItem> tabs        = windowTools.GetIUIItemList <Tab>(window);

            tabs = windowTools.GetIUIItemList <Tab>(window);
            Tab tab = (Tab)tabs[1]; //tabs have generic name tabControl, requires ordinal selection

            windowTools.GetAndSelectTabPage(tab, "Services / Care Plans");

            Button schedulingAssistant = windowTools.GetButton(window, "Fill Assignments");

            windowTools.DoubleClickIUItem(schedulingAssistant);

            windowTools.waitForLoadingWindowToClose(application, 1);
        }