public void TuslaCRM_Approval()
        {
            webDriver.Navigate().GoToUrl(URLConfig.CRM_SPP_Frame);

            Thread.Sleep(800);
            if (AJAXCall.IsElementPresent(By.CssSelector(".idp:nth-child(4) .largeTextNoWrap")))
            {
                pobalOption_Select.Click();
            }
            userName.SendKeys(Credentials_Data.UserName);
            password.SendKeys(Credentials_Data.Password);

            signIN.Click();
            AJAXCall.WaitForReady(webDriver);

            Thread.Sleep(1000);

            CRM_TabOptions.Click();
            Thread.Sleep(1500);

            tuslaTab.Click();

            Thread.Sleep(500);
            webDriver.SwitchTo().DefaultContent();
            Thread.Sleep(2000);

            //webDriver.SwitchTo().Frame("contentIFrame1");
            webDriver.SwitchTo().Frame(0);
            Thread.Sleep(500);

            ViewSelectorContainer.Click();
            webDriver.FindElement(By.Id("crmGrid_findCriteria")).Click();
            Thread.Sleep(500);

            WebDriverWait wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(800));

            Thread.Sleep(1000);



            if (AJAXCall.IsElementPresent(By.Id("crmGrid_findCriteria")) || crmGrid_FindCriteria.Displayed)
            {
                //crmSearchGrid.Click();

                IWebElement clickwebforms = webDriver.FindElement(By.Id("crmGrid_findCriteria"));
                wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(800));


                IWebElement wb    = webDriver.FindElement(By.Id("crmGrid_findHintText"));
                var         value = wb.GetAttribute("style");

                AJAXCall.WaitForAjax();

                if (value.Contains("display: none;"))
                {
                    AJAXCall.WaitForAjax();

                    clickwebforms.Click();
                    if (value.Contains("display: none;"))
                    {
                        Thread.Sleep(1000);
                        clickwebforms.Click();

                        Thread.Sleep(900);
                        clickwebforms.SendKeys(Constant_functions.tuslaNumber);
                        AJAXCall.WaitForAjax();
                        clickwebforms.SendKeys(Keys.Enter);
                        Thread.Sleep(1000);
                    }
                }
                else
                {
                    Thread.Sleep(1000);
                    clickwebforms.Click();
                    if (value.Contains("display: inline;"))
                    {
                        Thread.Sleep(1000);
                        clickwebforms.Click();

                        Thread.Sleep(900);
                        clickwebforms.SendKeys(Constant_functions.tuslaNumber);

                        AJAXCall.WaitForAjax();
                        Thread.Sleep(1000);
                        clickwebforms.SendKeys(Keys.Enter);
                        Thread.Sleep(1000);
                    }
                }
            }
            Thread.Sleep(1000);

            wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(800));

            CRM_UAT_ServiceProviderPortal_Page tuslaCRMPage = new CRM_UAT_ServiceProviderPortal_Page(webDriver);

            tuslaCRMPage.OnBoardingAdmin();

            webDriver.SwitchTo().DefaultContent();

            Thread.Sleep(2000);
            webDriver.SwitchTo().Frame(0);

            webDriver.SwitchTo().ParentFrame();
            Thread.Sleep(2000);

            webDriver.SwitchTo().Frame(1);
            Thread.Sleep(2000);


            Thread.Sleep(2000);
            if (AJAXCall.IsElementPresent(By.XPath("//*[@id='FormSecNavigationControl - Icon']")))
            {
                NavigationFlyOut_Button.Click();
                Review_Click.Click();
            }

            else
            {
                Actions action = new Actions(webDriver);
                action.KeyDown(Keys.Control).SendKeys(Keys.End).Perform();
            }
            IJavaScriptExecutor js = (IJavaScriptExecutor)webDriver;

            js.ExecuteScript("window.scrollBy(0,250)", "");

            Thread.Sleep(1000);

            IWebElement chkBox_td = webDriver.FindElement(By.Id("eyp_markasapproved_d"));
            var         td        = chkBox_td.GetAttribute("class");

            Thread.Sleep(2000);

            approve_chkBox.Click();
            AJAXCall.WaitForAjax();
            Thread.Sleep(1000);

            webDriver.SwitchTo().DefaultContent();

            AJAXCall.WaitForAjax();
            Thread.Sleep(800);

            SaveAndClose.Click();
            webDriver.SwitchTo().Frame(1);

            Thread.Sleep(1000);
            // webDriver.SwitchTo().DefaultContent();
            AJAXCall.WaitForAjax();
        }
        public void CRM_SPP_TRN_SearchAndApproval(IWebDriver webDriver)
        {
            try
            {
                pobalOption_Select.Click();
                userName.SendKeys(Credentials_Data.UserName);
                password.SendKeys(Credentials_Data.Password);

                signIN.Click();
                //webDriver.Navigate().GoToUrl(URLConfig.CRM_SPP_Frame);
                AJAXCall.WaitForAjax();

                Thread.Sleep(1000);
                tabCRM.Click();
                Thread.Sleep(1500);

                onboardingTab.Click();

                Thread.Sleep(2000);
                webDriver.SwitchTo().ParentFrame();

                Thread.Sleep(2000);
                webDriver.SwitchTo().Frame(0);



                //webDriver.FindElement(By.Id("crmGrid_findHintText")).Click();
                Thread.Sleep(500);
                webDriver.FindElement(By.Id("crmGrid_findCriteria")).Click();
                Thread.Sleep(500);

                WebDriverWait wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(800));
                Thread.Sleep(1000);



                if (AJAXCall.IsElementPresent(By.Id("crmGrid_findCriteria")) || crmGrid_FindCriteria.Displayed)
                {
                    //crmSearchGrid.Click();

                    IWebElement clickwebforms = webDriver.FindElement(By.Id("crmGrid_findCriteria"));
                    wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(800));


                    IWebElement wb    = webDriver.FindElement(By.Id("crmGrid_findHintText"));
                    var         value = wb.GetAttribute("style");

                    AJAXCall.WaitForAjax();

                    if (value.Contains("display: none;"))
                    {
                        AJAXCall.WaitForAjax();

                        clickwebforms.Click();
                        if (value.Contains("display: none;"))
                        {
                            Thread.Sleep(1000);
                            clickwebforms.Click();

                            Excel_Suite ex_TestData = new Excel_Suite(Env.EXCEL_TEST_URL);
                            ex_TestData.getCellData("SPP_TestData", true);



                            Thread.Sleep(900);
                            clickwebforms.SendKeys(Env.Data_Retrieve);

                            Thread.Sleep(1000);
                            clickwebforms.SendKeys(Keys.Enter);

                            AJAXCall.WaitForAjax();
                        }
                    }

                    else
                    {
                        Thread.Sleep(1000);
                        clickwebforms.Click();
                        if (value.Contains("display: inline;"))
                        {
                            Thread.Sleep(1000);
                            clickwebforms.Click();


                            Excel_Suite ex_TestData = new Excel_Suite(Env.EXCEL_TEST_URL);
                            ex_TestData.getCellData("SPP_TestData", true);

                            clickwebforms.SendKeys(Env.Data_Retrieve);

                            Thread.Sleep(1000);
                            clickwebforms.SendKeys(Keys.Enter);

                            Thread.Sleep(1000);
                        }
                    }
                }

                Thread.Sleep(1000);

                wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(800));
                OnBoardingAdmin();

                webDriver.SwitchTo().DefaultContent();

                Thread.Sleep(2000);
                webDriver.SwitchTo().Frame("contentIFrame1");


                Thread.Sleep(5000);
                if (AJAXCall.IsElementPresent(By.XPath("//*[@id='FormSecNavigationControl - Icon']")))
                {
                    NavigationFlyOut_Button.Click();
                    Review_Click.Click();
                }

                else
                {
                    Actions action = new Actions(webDriver);
                    action.KeyDown(Keys.Control).SendKeys(Keys.End).Perform();
                }


                IJavaScriptExecutor js = (IJavaScriptExecutor)webDriver;
                js.ExecuteScript("window.scrollBy(0,250)", "");


                Thread.Sleep(1000);
                IWebElement chkBox_td = webDriver.FindElement(By.Id("eyp_markasapproved_d"));
                var         td        = chkBox_td.GetAttribute("class");

                Thread.Sleep(2000);


                approve_chkBox.Click();


                /*if(value_box.Contains("display: inline-block;"))
                 * {
                 *   approve_chkbox.Click();
                 *
                 * } */


                AJAXCall.WaitForAjax();
                Thread.Sleep(1000);

                webDriver.SwitchTo().ParentFrame();

                AJAXCall.WaitForAjax();
                Thread.Sleep(800);

                SaveAndClose.Click();
                webDriver.SwitchTo().Frame(1);

                AJAXCall.WaitForAjax();

                js.ExecuteScript("window.scrollBy(0,250)", "");
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }