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);
        }
Esempio n. 2
0
        public In_Desktop_Use_SchedulingAssisstant_Set_Provider(Application app, string candidateName)
        {
            application = app;
            windowTools = new WindowTools();
            String[] weekDays = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
            //String[] weekDays = new String[] { "Saturday" };
            Button dayToClick = null;

            foreach (string day in weekDays)
            {
                List <Window> windows = windowTools.GetWindows(application);
                window     = windowTools.GetWindow(windows, "HomeHealthDesktop");
                dayToClick = GetButton(window, day);

                if (dayToClick.IsOffScreen == false)
                {
                    dayToClick.DoubleClick();
                }
                else
                {
                    windowTools.MouseDoubleClickPoint(window, new Point(dayToClick.Location.X, dayToClick.Location.Y));
                }

                SetProviderToCalendar(candidateName);
            }

            CloseSchedulingAssistantTab();
        }
        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);
            }
        }
Esempio 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);
        }
Esempio n. 6
0
        public In_Desktop_Use_ClientNoteBook_Load_CalendarService(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);
            UtilityTools   ut          = new UtilityTools();

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

            windowTools.GetAndSelectTabPage(tab, "Calendar of Service");
            windowTools.waitForLoadingWindowToClose(application, 1);
        }
        //Workaround to resolve issue with AddClientCase EndDate DatePicker (Checked datepickers block text entry)
        public In_EditCarePlan_CompleteEditRevision(Application application)
        {
            WindowTools   windowTools  = new WindowTools();
            UtilityTools  utilityTools = new UtilityTools();
            List <Window> windows      = windowTools.GetWindows(application);

            Window         window  = windowTools.GetWindow(windows, "EditCarePlanRevision");
            DateTimePicker endDate = windowTools.GetDateTimePicker(window, SearchCriteria.ByAutomationId("endDate"));

            endDate.Enter("11112020");

            utilityTools.DebugWindowItems(window);

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

            okButton.DoubleClick();
        }
Esempio 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);
        }