コード例 #1
0
        public static void OpenDispatchAndPayoutWindow(string dispatchStatus)
        {
            EllisWindow.WaitForControlReady();
            var view       = EllisWindow.Container.SearchFor <WinMenuItem>(new { Name = "Views" });
            var dispOrPout = view.Container.SearchFor <WinMenuItem>(new { Name = "Dispatch / Payout" });
            var window     = dispOrPout.Container.SearchFor <WinMenuItem>(new { Name = dispatchStatus });

            MouseActions.Click(view);
            MouseActions.Click(dispOrPout);
            MouseActions.Click(window);
        }
コード例 #2
0
        public static void ClickOnRateSheet()
        {
            EllisWindow.SetFocus();
            var menu = EllisWindow.Container.SearchFor <WinMenuBar>(new { Name = "Toolbar" });
            var file = menu.Items[0];

            Mouse.Click(file);
            var payroll = file.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Payroll });

            Mouse.Click(payroll);
            var garnishment = payroll.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.RateSheet });

            Mouse.Click(garnishment);
        }
コード例 #3
0
        public static void ClickOnOrders()
        {
            EllisWindow.SetFocus();
            //var menu = EllisWindow.Container.SearchFor<WinMenuBar>(new { Name = "Toolbar" });
            var views = EllisWindow.Container.SearchFor <WinMenuItem>(new { Name = "Views" });

            var payroll = views.Container.SearchFor <WinMenuItem>(new { Name = "Payroll" });

            var garnishment = payroll.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Garnishments });

            var orders = garnishment.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Orders });

            Mouse.Click(views);
            Mouse.Click(payroll);
            Mouse.Click(garnishment);
            Mouse.Click(orders);
        }
コード例 #4
0
        public static void ClickOnVieworPrintAnswerLetters()
        {
            EllisWindow.SetFocus();
            var menu = EllisWindow.Container.SearchFor <WinMenuBar>(new { Name = "Toolbar" });
            var file = menu.Items[0];

            Mouse.Click(file);
            var payroll = file.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Payroll });

            Mouse.Click(payroll);
            var garnishment = payroll.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Garnishments });

            Mouse.Click(garnishment);
            var letter = garnishment.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.AnswerLetter });

            Mouse.Click(letter);
        }
コード例 #5
0
        public static void ClickOnFilePayrollCreateOrder()
        {
            EllisWindow.SetFocus();
            var menu = EllisWindow.Container.SearchFor <WinMenuBar>(new { Name = "Toolbar" });
            var file = menu.Items[0];

            Mouse.Click(file);
            var payroll = file.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Payroll });

            Mouse.Click(payroll);
            var garnishment = payroll.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Garnishments });

            Mouse.Click(garnishment);
            var order = garnishment.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Order });

            Mouse.Click(order);
        }