private static bool VerifyAramarkCorporationProfileDisplayed()
        {
            Globals.CustomerName = "ARAMARK CORPORATION";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyPhillipGrekoProfileDisplayed()
        {
            Globals.CustomerName = "Phillip Greko";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyKristanSchriderProfileDisplayed()
        {
            Globals.CustomerName = "Kristan Schrider";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyRoseHembrookProfileDisplayed()
        {
            Globals.CustomerName = "ROSE HEMBROOK";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyLisaFlemmingProfileDisplayed()
        {
            Globals.CustomerName = "lisa flemming";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyBenCreteIncProfileDisplayed()
        {
            Globals.CustomerName = "BEN-CRETE, INC.";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
        private static bool VerifyNumaticFinishingCorpProfileDisplayed()
        {
            Globals.CustomerName = "NUMATIC FINISHING CORP.";
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Exists);
        }
Exemplo n.º 8
0
        public static bool VerifyProfileWindowDisplayedWhenCusNumberLinkClicked()
        {
            var prop  = GetCustomerCollectionsWindowProperties();
            var link  = prop.Container.SearchFor <WinCustom>(new { ControlName = ARControls.CustNumber });
            var child = link.GetChildren();

            Actions.MouseClickOnCoordinates(child[3]);

            return(CustomerProfileWindow.GetCustomerProfileWindowProperties().Enabled);
        }
Exemplo n.º 9
0
        public static bool VerifyCustomerProfileWindowDisplayedWhenCustomerNumberClicked()
        {
            var custom = Actions.GetWindowChild(EllisWindow, ARControls.CustNumber);
            var child  = custom.GetChildren();

            Actions.MouseClickOnCoordinates(child[3]);

            var prop = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(prop.Exists);
        }
Exemplo n.º 10
0
        public void CustomerCalendarFilterTest()
        {
            Initialize();
            LandingPage.SelectFromToolbar("Customers");
            LandingPage.ClickOnCalendarButton(LandingPage.LandingPageControls.Advanced);
            LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedFromDate, "01012014");
            LandingPage.EnterDate(LandingPage.LandingPageControls.AdvancedToDate, "02272014");
            //LandingPage.ClickOnCalendarClient();
            SendKeys.SendWait("{TAB}");
            CustomerProfileWindow.SelectFirstCustomerFromTable();
            Factory.AssertIsTrue(CustomerProfileWindow.VerifyProfileDefaults(), "");

            TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties());

            Cleanup();
        }
        public void CustomerSimpleSearch()
        {
            try
            {
                var datarows = Initialize();
                foreach (var dataRow in datarows.Where(dataRow => dataRow.ItemArray[4].ToString().Equals("Customer")))
                {
                    Debug.WriteLine(dataRow.ItemArray[3]);
                    SearchWindow.SelectSearchElements(dataRow.ItemArray[5].ToString(), "Customer",
                                                      SearchWindow.SearchTypeConstants.Simple);
                    Playback.Wait(3000);
                    Globals.CustomerName = dataRow.ItemArray[6].ToString();

                    Factory.AssertIsTrue(SimpleSearchWindow.VerifyCustomerProfileDisplayed(dataRow.ItemArray[6].ToString()),
                                         "Customer profile for " + dataRow.ItemArray[5] + " Is not displayed");

                    TitlebarActions.ClickClose((WinWindow)CustomerProfileWindow.GetCustomerProfileWindowProperties());
                }
            }
            finally
            {
                Cleanup();
            }
        }
        public static bool VerifyCustomerProfileDisplayed(string data)
        {
            var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();

            return(window.Name.Contains(data));
        }
        public static bool VerifySearchResultsWindowDisplayed()
        {
            try
            {
                var searchResultsWindow = GetSearchResultsWindowProperties();
                if (searchResultsWindow.Enabled)
                {
                    Playback.Wait(3000);
                    CloseSearchResultsWindow();
                    return(true);
                }

                var validationWindow = GetSearchValidationErrorWindowProperties();
                if (validationWindow.Exists)
                {
                    MouseActions.ClickButton(validationWindow, "_OKButton");
                    ClickOnCancelButton();
                    return(true);
                }
                return(false);
            }
            catch (Exception)
            {
                //suppress any exception here
                if (VerifyNumaticFinishingCorpProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyBenCreteIncProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyLisaFlemmingProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyKristanSchriderProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyRoseHembrookProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyAramarkCorporationProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }

                if (VerifyPhillipGrekoProfileDisplayed())
                {
                    var window = CustomerProfileWindow.GetCustomerProfileWindowProperties();
                    window.SetFocus();
                    Actions.SendAltF4();
                    return(true);
                }
            }
            return(false);
        }