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); }
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); }
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); }
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); }
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); }