/* driver.FindElement(By.CssSelector(".datepicker-days .next > .glyphicon")).Click();
         * {
         *   var element = driver.FindElement(By.CssSelector(".datepicker-days .next > .glyphicon"));
         *   Actions builder = new Actions(driver);
         * builder.DoubleClick(element).Perform();
         * } */



        public void RegistrationPage()
        {
            CommonUtils cookieIgnore = new CommonUtils(driver);

            cookieIgnore.RejectAll_Cookies();

            SignIn_Page.Click();


            Excel_Suite userEmail = new Excel_Suite(Env.EXCEL_TEST_URL);

            userEmail.getCellData("SPP_TestData", true);
            Email_Text.SendKeys(Env.Email_Id);
            Password_Text.SendKeys("Test@123");

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

            Thread.Sleep(800);
            Submit.Click();


            dropdown_NCS.Click();
            NCS_Tab.Click();

            RetrieveCHICK.Click();

            Excel_Suite     childDataExcel = new Excel_Suite(Env.EXCEL_TEST_CHILD_DATA);
            ChildAward_Data ChildData      = childDataExcel.GetChildDetails(Env.EXCEL_TEST_CHILD_DATA);


            Eyp_firstname.SendKeys(ChildData.ChildFirstName);
            Eyp_lastname.SendKeys(ChildData.ChildLastName);

            DateOfBirth.SendKeys(ChildData.DateOfBirth);
            Eyp_chic.SendKeys(ChildData.ChildIdentifierCode);

            NextButton.Click();

            StartDate.SendKeys("");

            EndDate.SendKeys("");

            NextButton.Click();

            Claimedhours.SendKeys("4");
        }
        public void MyAwards_NCS()
        {
            MyAwards.Click();
            viewAwards.Click();
            List <string> child_Data = new List <string>();
            Excel_Suite   Ex         = new Excel_Suite(Env.EXCEL_TEST_CHILD_DATA);

            Viewdetails.Click();
            ChildAward_Data cad = null;

            foreach (var Val in Child_Label)
            {
                if (Val.Text.Contains("Child's full name:"))
                {
                    if (cad == null)
                    {
                        cad = getChildAwardInstance();
                    }
                    cad.ChildName = Child_Content[0].Text;
                }
                else if (Val.Text.Contains("Date of Birth:"))
                {
                    if (cad == null)
                    {
                        cad = getChildAwardInstance();
                    }
                    cad.DateOfBirth = Child_Content[2].Text;
                }
                else if (Val.Text.Contains("Childcare Identifier Code Key:"))
                {
                    if (cad == null)
                    {
                        cad = getChildAwardInstance();
                    }
                    cad.ChildIdentifierCode = Child_Content[3].Text;
                }
            }
            if (cad != null)
            {
                Ex.setChildDetails("Data", "DOB", cad);
                ReportsGeneration._test.Log(Status.Pass, "Child IdentifierCode" + "      " + "Child Name:  " + cad.ChildName + "Child dob :  " + cad.DateOfBirth + "Child Code : " + cad.ChildIdentifierCode + "      " + "PASSED");
            }
        }