예제 #1
0
        public static void SelectFirstCustomerInvoiceFromTable()
        {
            var cell = TableActions.SelectCellFromTable(EllisWindow, ARControls.LockboxTable,
                                                        "LockboxBatchSummaryDomain row 1", "Batch #");

            Globals.CustomerName = cell.Value;
            MouseActions.Click(cell);
        }
예제 #2
0
        public static void SelectFirstRemittenceFromTable()
        {
            var prop = GetPaymentLockboxWindowProperties();
            var cell = TableActions.SelectCellFromTable(prop, ARControls.PaymentDetailsTable, "RemittanceTransfer row 1",
                                                        "#");

            MouseActions.Click(cell);
        }
예제 #3
0
        public static void SelectInvoiceFromResults()
        {
            var window = GetSearchResultsWindowProperties();
            var cell   = TableActions.SelectCellFromTable(window, CSearchControls.SearchResultGrid,
                                                          "CustomerAdvancedSummaryDomain row 1", "Ellis Invoice Number");

            MouseActions.DoubleClick(cell);
        }
예제 #4
0
        public static void SelectCustomerCollectionFromLandingPage()
        {
            var cell = TableActions.SelectCellFromTable(EllisWindow, ARControls.OverdueCustomers,
                                                        "OverdueCustomerSummaryDomain row 1",
                                                        "Customer Name");

            Globals.CustomerName = cell.Value;
            Mouse.DoubleClick(cell);
        }
예제 #5
0
        public static void SelectJobOrderFromResults()
        {
            var window = GetSearchResultsWindowProperties();
            var cell   = TableActions.SelectCellFromTable(window, CSearchControls.SearchResultGrid,
                                                          "DispatchJobOrderDetailSummary row 1", "Job Order#");

            Globals.JobOrderNo = cell.Value;
            cell.SetFocus();
            MouseActions.DoubleClick(cell);
        }
예제 #6
0
        public static bool SelectCustomer()
        {
            var customerPopUp = GetCustomerSearchPopUpProperties();

            if (customerPopUp.Exists)
            {
                var cell = TableActions.SelectCellFromTable(customerPopUp, CustomerSearchConstants.CustomersGrid,
                                                            "CustomerDomain row 1", "Customer Name - Number");
                cell.SetFocus();
                MouseActions.DoubleClick(cell);
                return(true);
            }
            return(false);
        }
예제 #7
0
        public static bool VerifyNewNoteAdded()
        {
            var prop = GetCustomerCollectionsWindowProperties();
            var cell = TableActions.SelectCellFromTable(prop, ARControls.OverdueCustomers,
                                                        "OverdueCustomerSummaryDomain row 2",
                                                        "Customer Name");

            Globals.CustomerName = cell.Value;
            Mouse.DoubleClick(cell);

            var returnAns =
                CustomerProfileWindow.VerifyNewNoteDisplayedInGrid(
                    "This is an unpaid invoice. This note is just for testing purpose.");

            return(returnAns);
        }
예제 #8
0
 public static bool SelectFirstCustomerNameFromResults()
 {
     try
     {
         var searchResults = GetSearchResultsWindowProperties();
         var cell          = TableActions.SelectCellFromTable(searchResults, CSearchControls.SearchResultGrid,
                                                              "CustomerAdvancedSummaryDomain row 1", "Customer Name");
         Globals.CustomerName = cell.Value;
         MouseActions.DoubleClick(cell);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #9
0
        public static void EnterRateSheetData(DataRow data)
        {
            var rateSheet = GetRateSheetWindowProperties();

            var cell = TableActions.SelectCellFromTable(rateSheet, "grdRateSheet", "RateSheetDetailsDomain row 1",
                                                        "RateSheetDate");

            cell.SetFocus();
            Playback.Wait(2000);
            Mouse.Click(cell);
            SendKeys.SendWait("{HOME}");
            SendKeys.SendWait(data.ItemArray[36].ToString());
            Playback.Wait(2000);

            MouseActions.ClickButton(rateSheet, "btnUpdate");
        }
예제 #10
0
        public static void EnterLicenseData(DataRow data)
        {
            var workerProfileWindow = GetWorkerProfileWindowProperties();
            var cell = TableActions.SelectCellFromTable(workerProfileWindow, "grdLicense", "Add Row", "License Type");

            cell.SetFocus();
            Mouse.DoubleClick(cell);
            SendKeys.SendWait(data.ItemArray[7].ToString());
            Actions.SendTab();
            Actions.SendText("{BACKSPACE}");
            SendKeys.SendWait(data.ItemArray[8].ToString());
            Actions.SendTab();
            SendKeys.SendWait(data.ItemArray[9].ToString());
            Actions.SendTab();
            SendKeys.SendWait(data.ItemArray[10].ToString());
            Actions.SendTab();
            SendKeys.SendWait(data.ItemArray[11].ToString());
        }
예제 #11
0
        public static void EnterDatainCustomerSearch(DataRow data)
        {
            var customerPopUp = GetCustomerSearchPopUpProperties();

            if (customerPopUp.Exists)
            {
                var custmerNumber = Actions.GetWindowChild(customerPopUp, CustomerSearchConstants.CustomerNumber);
                if (!string.IsNullOrEmpty(data.ItemArray[3].ToString()))
                {
                    Actions.SetText(custmerNumber, data.ItemArray[3].ToString());
                }

                MouseActions.ClickButton(customerPopUp, CustomerSearchConstants.SearchBtn);
                var cell = TableActions.SelectCellFromTable(customerPopUp, CustomerSearchConstants.CustomersGrid,
                                                            "CustomerDomain row 1", "Customer Name - Number");
                cell.SetFocus();
                MouseActions.DoubleClick(cell);
            }
        }
        public static void HandleExistingFEDCustomer()
        {
            try
            {
                var window = GetExistingCustomerFoundWindowProperties();

                if (window.Exists)
                {
                    //MouseActions.ClickButton(window, CCustomerConstants.CreateCustomer);
                    var cell = TableActions.SelectCellFromTable(window, "_gridCustomers", "CustomerSummaryDomain row 1",
                                                                "Name");
                    Globals.CustomerName = cell.Value;
                    MouseActions.DoubleClick(cell);
                }
            }

            catch
            {
                //Suppress any exception here
            }
        }
예제 #13
0
        public static void EnterDataInSurveyGrid()
        {
            var workerProfileWindow = GetWorkerProfileWindowProperties();

            var select = TableActions.SelectCellFromTable(workerProfileWindow, WorkerSurveyTabConstants.SurveyGrid,
                                                          "Band 0 row 1", "Select");

            select.SetFocus();
            Mouse.Click(select);
            SendKeys.SendWait("{TAB}");
            Playback.Wait(2000);
            SendKeys.SendWait("{TAB}");
            Playback.Wait(2000);
            SendKeys.SendWait("{TAB}");
            Playback.Wait(2000);
            SendKeys.SendWait("{DOWN}");
            SendKeys.SendWait("{DOWN}");
            Playback.Wait(2000);

            MouseActions.ClickButton(workerProfileWindow, "btnUpdate");
        }
        //public static void EnterLicenseData(DataRow data)
        //{
        //    var jWorkerWindow = GetWorkerSkillsWindowProperties();

        //    var cell = TableActions.SelectCellFromTable(jWorkerWindow, "grdLicense", "Add Row", "License Type");
        //    cell.SetFocus();
        //    Mouse.DoubleClick(cell);
        //    SendKeys.SendWait(data.ItemArray[68].ToString());
        //    Actions.SendTab();
        //    Playback.Wait(1000);
        //    Actions.SendText("{BACKSPACE}");
        //    SendKeys.SendWait(data.ItemArray[69].ToString());
        //    Actions.SendTab();
        //    Playback.Wait(1000);
        //    SendKeys.SendWait(data.ItemArray[70].ToString());
        //    Actions.SendTab();
        //    Playback.Wait(1000);
        //    SendKeys.SendWait(data.ItemArray[71].ToString());
        //    Actions.SendTab();
        //    Playback.Wait(1000);
        //    SendKeys.SendWait(data.ItemArray[72].ToString());
        //    Playback.Wait(2000);

        //    var dutyChkBox = Actions.GetWindowChild(jWorkerWindow, WJobSkillsWindowConstants.DutyChkBox);
        //    Actions.SetCheckBox((WinCheckBox)dutyChkBox, data.ItemArray[73].ToString());

        //    var vehicleChkBox = Actions.GetWindowChild(jWorkerWindow, WJobSkillsWindowConstants.VehicleChkBox);
        //    Actions.SetCheckBox((WinCheckBox)vehicleChkBox, data.ItemArray[74].ToString());

        //    MouseActions.ClickButton(jWorkerWindow, WJobSkillsWindowConstants.ContinueBtn);
        //    Playback.Wait(1000);
        //}

        public static void EnterLicenseData(DataRow data)
        {
            var jWorkerWindow = GetWorkerSkillsWindowProperties();

            var lType = TableActions.SelectCellFromTable(jWorkerWindow, "grdLicense", "WorkerLicensesDomain row 1", "License Type");

            if (!string.IsNullOrEmpty(data.ItemArray[68].ToString()))
            {
                lType.SetFocus();
            }
            Mouse.Click(lType);
            SendKeys.SendWait(data.ItemArray[68].ToString());
            Playback.Wait(1000);

            var eDate = TableActions.SelectCellFromTable(jWorkerWindow, "grdLicense", "WorkerLicensesDomain row 1", "Expiration Date");

            if (!string.IsNullOrEmpty(data.ItemArray[69].ToString()))
            {
                Actions.SetText(eDate, data.ItemArray[69].ToString());
            }
            Playback.Wait(1000);

            var issue = TableActions.SelectCellFromTable(jWorkerWindow, "grdLicense", "WorkerLicensesDomain row 1", "Issued By");

            if (!string.IsNullOrEmpty(data.ItemArray[70].ToString()))
            {
                issue.SetFocus();
            }
            Mouse.Click(issue);
            SendKeys.SendWait(data.ItemArray[70].ToString());
            Playback.Wait(1000);

            var state = TableActions.SelectCellFromTable(jWorkerWindow, "grdLicense", "WorkerLicensesDomain row 1", "Federal/State");

            if (!string.IsNullOrEmpty(data.ItemArray[71].ToString()))
            {
                state.SetFocus();
            }
            Mouse.Click(state);
            SendKeys.SendWait(data.ItemArray[71].ToString());
            Playback.Wait(1000);

            var moreInfo = TableActions.SelectCellFromTable(jWorkerWindow, "grdLicense", "WorkerLicensesDomain row 1", "More Info");

            if (!string.IsNullOrEmpty(data.ItemArray[72].ToString()))
            {
                Actions.SetText(moreInfo, data.ItemArray[72].ToString());
            }
            Playback.Wait(2000);

            var dutyChkBox = Actions.GetWindowChild(jWorkerWindow, WJobSkillsWindowConstants.DutyChkBox);

            Actions.SetCheckBox((WinCheckBox)dutyChkBox, data.ItemArray[73].ToString());

            var vehicleChkBox = Actions.GetWindowChild(jWorkerWindow, WJobSkillsWindowConstants.VehicleChkBox);

            Actions.SetCheckBox((WinCheckBox)vehicleChkBox, data.ItemArray[74].ToString());

            //MouseActions.ClickButton(jWorkerWindow, WJobSkillsWindowConstants.ContinueBtn);
            //Playback.Wait(1000);
        }