public static void ClickDateTextbox(string datetype) { var fromWindow = Actions.GetWindowChild(EllisWindow, datetype); var comboBox = (WinComboBox)fromWindow; MouseActions.Click(comboBox); }
public static void ClickCancel() { var customerWindow = GetCreateCustomerWindowProperties(); var btn = customerWindow.Container.SearchFor <WinButton>(new { Name = "Cancel" }); MouseActions.Click(btn); }
public static void SelectFirstRemittenceFromTable() { var prop = GetPaymentLockboxWindowProperties(); var cell = TableActions.SelectCellFromTable(prop, ARControls.PaymentDetailsTable, "RemittanceTransfer row 1", "#"); MouseActions.Click(cell); }
public static void SelectPrintLetterTab() { var tabs = GetTabs(); var tabList = tabs.Container.SearchFor <WinWindow>(new { ControlName = "ultraTabControl3" }); var selectedTab = tabList.Container.SearchFor <WinTabPage>(new { Name = "InternalProcessPrintmethod" }); MouseActions.Click(selectedTab); }
public static void SelectMainTab(string tabName) { var workerProfileWindow = GetWorkerProfileWindowProperties(); var tabs = Actions.GetWindowChild(workerProfileWindow, "ultraTabControl2"); var selectedMainTab = tabs.Container.SearchFor <WinTabPage>(new { Name = tabName }); MouseActions.Click(selectedMainTab); }
public static void SelectNotesTab() { var tabs = GetTabs(); var tabList = tabs.Container.SearchFor <WinWindow>(new { ControlName = "orderSummaryWorkspace" }); var selectedTab = tabList.Container.SearchFor <WinTabPage>(new { Name = "Notes" }); MouseActions.Click(selectedTab); }
public static void SelectFirstCustomerInvoiceFromTable() { var cell = TableActions.SelectCellFromTable(EllisWindow, ARControls.LockboxTable, "LockboxBatchSummaryDomain row 1", "Batch #"); Globals.CustomerName = cell.Value; MouseActions.Click(cell); }
public static void CloseAdvanceSearchWindow() { var searchWindow = App.Container.SearchFor <WinWindow>(new { Name = "Search" }); var closeBtn = searchWindow.Container.SearchFor <WinButton>(new { Name = "Close" }); MouseActions.Click(closeBtn); }
private static void ClickOnCancelButton() { var searchWindow = GetSearchWindowProperties(); var cancelBtn = searchWindow.Container.SearchFor <WinButton>(new { Name = "Cancel" }); MouseActions.Click(cancelBtn); Playback.Wait(5000); }
public static void SelectInnerTab(string mainTab, string innerTab) { var tabs = GetWorkerProfileTabs(); var tabList = tabs.Container.SearchFor <WinWindow>(new { ControlName = "ultraTabControl2" }); var wProfileTab = tabList.Container.SearchFor <WinTabPage>(new { Name = mainTab }); var clicktInnerTab = wProfileTab.Container.SearchFor <WinTabPage>(new { Name = innerTab }); MouseActions.Click(clicktInnerTab); }
public static void ClickOnSearchButton() { var searchWindow = GetSearchWindowProperties(); var searchBtn = searchWindow.Container.SearchFor <WinButton>(new { Name = "Search" }); MouseActions.Click(searchBtn); Playback.Wait(5000); }
public static void ClickOnCreateCustomer() { var file = EllisWindow.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.File }); var customer = file.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.Customer }); var ccustomer = customer.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.CCustomer }); MouseActions.Click(file); MouseActions.Click(customer); MouseActions.Click(ccustomer); }
public static void ClickOnCreateJobOrder() { var file = EllisWindow.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.File }); var joborder = file.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.JobOrder }); var cjoborder = joborder.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.CJobOrder }); MouseActions.Click(file); MouseActions.Click(joborder); MouseActions.Click(cjoborder); }
public static void ClickNewOrderImageCancelButton() { var window = GetAttachNewOrderImageWindowProperties(); var button = window.Container.SearchFor <WinButton>(new { ControlId = "2" }); button.SetFocus(); //Actions.SendEnter(); MouseActions.Click(button); //TitlebarActions.ClickClose((WinWindow)window); }
public static void ClickOnCancelJobOrderBtn() { Playback.Wait(3000); var windowInstence = ScheduleAndAdditionalChargesWindowProperties(); var butColloction = GetButtonColloction(windowInstence, "Cancel Job Order"); foreach (var control in butColloction) { MouseActions.Click(control); } }
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 ClickOnBackBtn() { Playback.Wait(3000); var windowInstence = ReportToAndBillingInfoWindowProperties(); var butColloction = GetButtonColloction(windowInstence, "< Back"); foreach (var control in butColloction) { MouseActions.Click(control); } }
public static void ClickOnCancelJobOrderBtn() { Playback.Wait(3000); var windowInstence = GetBasicJobInformationWindowProperties(); var butColloction = GetButtonColloction(windowInstence, "Cancel Job Order"); foreach (var control in butColloction) { MouseActions.Click(control); } }
public static void ClickOnCreateApplicant() { var file = EllisWindow.Container.SearchFor <WinMenuItem>(new { Name = EllisHomeConstants.File }); var worker = file.Container.SearchFor <WinMenuItem>(new { Name = "Workers" }); var applicant = worker.Container.SearchFor <WinMenuItem>(new { Name = "Create Applicant" }); MouseActions.Click(file); MouseActions.Click(worker); MouseActions.Click(applicant); }
public static void OpenPrevailingJobWindow(string prevailingWageJobStatus) { var view = EllisWindow.Container.SearchFor <WinMenuItem>(new { Name = "Views" }); var payRoll = view.Container.SearchFor <WinMenuItem>(new { Name = "Payroll" }); var prevailingWage = payRoll.Container.SearchFor <WinMenuItem>(new { Name = "Prevailing Wage" }); var window = prevailingWage.Container.SearchFor <WinMenuItem>(new { Name = prevailingWageJobStatus }); MouseActions.Click(view); MouseActions.Click(payRoll); MouseActions.Click(prevailingWage); MouseActions.Click(window); }
public static bool ClickOnSaveBtnVerification() { var workerProfileWindow = GetWorkerProfileWindowProperties(); if (workerProfileWindow.Exists) { var saveBtn = Actions.GetWindowChild(workerProfileWindow, WorkerVerificationTabConstants.Save); MouseActions.Click(saveBtn); return(true); } return(false); }
public static void SelectNotesInComboBox() { var workerProfileWindow = GetWorkerProfileWindowProperties(); var ratingsCmbbox = Actions.GetWindowChild(workerProfileWindow, WorkerRatingsandNotesTabConstants.Ratings); MouseActions.Click(ratingsCmbbox); SendKeys.SendWait("Notes"); Playback.Wait(1000); MouseActions.ClickButton(workerProfileWindow, WorkerRatingsandNotesTabConstants.AddNotesBtn); }
public static bool ClickOnSearchBtn() { var addWorkerSkillsWindow = GetAddWorkerSkillsWindowProperties(); if (addWorkerSkillsWindow.Exists) { var searchBtn = Actions.GetWindowChild(addWorkerSkillsWindow, AddworkerSkillsWindowConstants.SearchBtn); MouseActions.Click(searchBtn); return(true); } return(false); }
public static bool ClickSearchBtn() { var notificationSearchWindow = GetNotificationSearchWindowProperties(); if (notificationSearchWindow.Exists) { var searchBtn = Actions.GetWindowChild(notificationSearchWindow, NotificationSearchConstants.SearchBtn); MouseActions.Click(searchBtn); return(true); } return(false); }
public static bool ClickSubmitcreditlimitBtn() { var lockoutWindow = GetlockoutWindowProperties(); if (lockoutWindow.Exists) { var submitBtn = Actions.GetWindowChild(lockoutWindow, "_submitButton"); MouseActions.Click(submitBtn); return(true); } return(false); }
public static bool ClickOnAddorUpdateBtn() { var workerProfileWindow = GetWorkerProfileWindowProperties(); if (workerProfileWindow.Exists) { var addBtn = Actions.GetWindowChild(workerProfileWindow, WorkerSkillsTabConstants.AddOrUpdateBtn); MouseActions.Click(addBtn); return(true); } return(false); }
public static bool ClickAddNotesBtn() { var workerProfileWindow = GetWorkerProfileWindowProperties(); if (workerProfileWindow.Exists) { var addNotesBtn = Actions.GetWindowChild(workerProfileWindow, WorkerRatingsandNotesTabConstants.AddNotesBtn); MouseActions.Click(addNotesBtn); return(true); } return(false); }
public static bool ClickOnStatusDropDown() { var changeStatusWindow = GetChangeStatusWindowProperties(); if (changeStatusWindow.Exists) { var status = Actions.GetWindowChild(changeStatusWindow, StatusWorkerConstants.PrimaryStatus); MouseActions.Click(status); Playback.Wait(2000); return(true); } return(false); }
public static void EnterDate(string datetype, string date) { var fromWindow = Actions.GetWindowChild(EllisWindow, datetype); var comboBox = (WinComboBox)fromWindow; MouseActions.Click(comboBox); for (int i = 0; i < 10; i++) { SendKeys.SendWait("{BACKSPACE}"); Playback.Wait(200); } //SendKeys.SendWait("{HOME}"); Playback.Wait(1500); SendKeys.SendWait(date); }
/// <summary> /// This method table below parameters and perform operation required to login into website /// </summary> /// <param name="Username"></param> /// <param name="Password"></param> /// <param name="driver"></param> public void login(String Username, String Password, IWebDriver driver) { LoginUI Ui = new LoginUI(); IWebElement GetusernameField = Ui.Username(driver); IWebElement GetSubmitButton = Ui.Submit(driver); KeyboardActions.SendKeys(GetusernameField, Username, driver); MouseActions.Click(GetSubmitButton, driver); IWebElement GetPasswordField = Ui.Password(driver); KeyboardActions.SendKeys(GetPasswordField, Password, driver); IWebElement GetLoginButton = Ui.Submit(driver); MouseActions.Click(GetLoginButton, driver); }