public void VerifyARCustomerProfileDefaultsTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("AR");

            ARWindow.SelectCustomerCollectionFromLandingPage();
            CustomerProfileWindow.SelectTab(CCTabConstants.Invoices);
            Factory.AssertIsTrue(CustomerProfileWindow.VerifyNoteTypeOptionsDisplayed(), "Note type options are not displayed.");

            CustomerProfileWindow.SelectTab(CCTabConstants.Notes);
            ARWindow.ClickAddNoteButton();

            Factory.AssertIsTrue(ARWindow.VerifyBalanceDueAmountDisplayed(), "Balance amount is not displayed");
            Factory.AssertIsTrue(ARWindow.VerifyProfileWindowDisplayedWhenCusNameLinkClicked(),
                                 "Customer profile window is not displayed when customer name link is clicked");
            CustomerProfileWindow.CloseCustomerProfileWindow();

            //Factory.AssertIsTrue(ARWindow.VerifyProfileWindowDisplayedWhenCusNumberLinkClicked(),
            //    "Customer profile window is not displayed when customer number link is clicked");
            //CustomerProfileWindow.CloseCustomerProfileWindow();
            TitlebarActions.ClickClose((WinWindow)ARWindow.GetCustomerCollectionsWindowProperties());

            LandingPage.SelectEODReviewFromNavigationExplorer();
            ARWindow.SearchForAllEODReviews();

            Cleanup();
        }
        public void LockboxInvoiceSearchTest()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsARMUser();

            //LandingPage.ClickOnCalendarButton(LandingPage.LandingPageControls.Advanced);
            //LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedFromDate, "11/16/2009");
            //LandingPage.ClickDateTextbox(LandingPage.LandingPageControls.AdvancedToDate);
            //Playback.Wait(2000);

            LandingPage.SelectDateRange();

            ARWindow.SelectFirstCustomerInvoiceFromTable();
            ARWindow.SelectFirstRemittenceFromTable();
            ARWindow.ClickOpeninNewWindowButton();

            Factory.AssertIsTrue(ARWindow.VerifyPaymentInvoiceWindowDisplayed(),
                                 "Payment profile invoice window is not displayed when clicked on Open In New Window");
            Factory.AssertIsTrue(ARWindow.VerifyRemainingAmountDisplayedOnWindow(),
                                 "Remaining Amount is not displayed on window");

            ARWindow.ClosePaymentInvoiceWindow();
            //TitlebarActions.ClickClose((WinWindow) ARWindow.GetPaymentLockboxWindowProperties());
            //TitlebarActions.ClickClose((WinWindow) ARWindow.GetPaymentProfileWindowProperties());
            Playback.Wait(1000);
            Actions.SendAltF4();
            Playback.Wait(1000);
            Actions.SendAltF4();

            Cleanup();
        }
        public void ARApplyTransactionTest()
        {
            WindowsActions.KillEllisProcesses();
            App = EllisHome.LaunchEllisAsARMUser();
            LandingPage.SelectFromToolbar("AR");
            Playback.Wait(2000);
            LandingPage.SelectCustomerInvoicesFromNavigationExplorer();

            Factory.AssertIsTrue(ARWindow.VerifyCustomerInvGridDisplayed(), "Customer Invoice Grid is not displayed");
        }
        public void VerifyARLandingPageDefaults()
        {
            Initialize();
            LandingPage.SelectFromToolbar("AR");

            Factory.AssertIsTrue(ARWindow.VerifyInvoices("All"), "UnPaid invoices are not displayed as All");
            Factory.AssertIsTrue(ARWindow.VerifyMyOrg("Is Collecting"), "My Org is not equal to Is Collecting on landing page");
            Factory.AssertIsTrue(ARWindow.VerifyOverDueDisplayed(), "Over dues are not displayed");
            //Factory.AssertIsTrue(ARWindow.VerifyCustomerProfileWindowDisplayedWhenCustomerNumberClicked(),
            //    "Customer profile page is not displayed when customer on landing page is clicked");

            Cleanup();
        }
        public void VerifyARCancelCallbackNewNoteTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("AR");

            if (RightClick.CallBack())
            {
                Factory.AssertIsTrue(ARWindow.AddNoteWindowDisplayed(), "Add Note window is not displayed");

                ARWindow.AddNewNoteToCancelCallback();
                Factory.AssertIsTrue(ARWindow.VerifyNewNoteAdded(), "New note is not added to the cancel callback");
                CustomerProfileWindow.CloseCustomerProfileWindow();
            }
            Cleanup();
        }
        public void VerifyARRescheduleNewNoteTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("AR");

            if (RightClick.Reschedule())
            {
                Factory.AssertIsTrue(ARWindow.VerifyCustomerCollectionsWindowDisplayed(),
                                     "Customer collections window is not displayed");

                ARWindow.AddNewNoteToUnpaidInvoice();
                Factory.AssertIsTrue(ARWindow.VerifyNewNoteAdded(), "New note is not added to the unpaid invoice");
                CustomerProfileWindow.CloseCustomerProfileWindow();
            }
            Cleanup();
        }