public static void EditSpecificationSubPolicyPage()
        {
            HomePage           homepage           = new HomePage();
            ManagePoliciesPage managepoliciespage = new ManagePoliciesPage();
            EditSubPolicyPage  editsubpolicypage  = new EditSubPolicyPage();

            CreateNewSpecification.CreateANewSpecification();
            ManageSpecificationCreateNewPolicy.CreateANewSpecificationPolicy();
            ManageSpecificationCreateNewSubPolicy.CreateANewSpecificationSubPolicy();

            Thread.Sleep(2000);
            IWebElement editSubPolicy = Driver._driver.FindElement(By.CssSelector(".data-subpolicy-editlink-icon > i:nth-child(1)"));

            editSubPolicy.Should().NotBeNull();
            editSubPolicy.Click();
            Thread.Sleep(2000);

            /*
             * IWebElement subpolicyList = managepoliciespage.SubPolicyList;
             * subpolicyList.Should().NotBeNull();
             *
             * var containerElements = subpolicyList;
             * IWebElement firstSelectEditSubPolicy = null;
             * if (containerElements != null)
             * {
             *  var options = containerElements.FindElements(By.TagName("i"));
             *  foreach (var optionelement in options)
             *  {
             *      if (optionelement != null)
             *      {
             *          firstSelectEditSubPolicy = optionelement;
             *
             *          break;
             *
             *
             *      }
             *  }
             *  Thread.Sleep(1000);
             *  if (firstSelectEditSubPolicy != null)
             *  {
             *      firstSelectEditSubPolicy.Click();
             *      Thread.Sleep(2000);
             *      editsubpolicypage.editSubPolicyName.Should().NotBeNull();
             *  }
             *  else
             *  {
             *      firstSelectEditSubPolicy.Should().NotBeNull("No Edit Sub Policy Option exist for the Policy selected");
             *  }
             * }
             * else
             * {
             *  firstSelectEditSubPolicy.Should().NotBeNull("No Edit Sub Policy Option exists");
             * }
             */
        }
        public static void CreateCalculation()
        {
            HomePage homepage = new HomePage();
            ManageSpecificationPage managepecificationpage = new ManageSpecificationPage();
            ManagePoliciesPage      managepoliciespage     = new ManagePoliciesPage();
            CreateCalculationPage   createcalculationpage  = new CreateCalculationPage();

            CreateNewPESportSpecification.CreateANewPESportSpecification();
            ManageSpecificationCreateNewPolicy.CreateANewSpecificationPolicy();
            managepoliciespage.CreateCalculation.Click();
        }
        public static void EditSpecificationPolicyPage()
        {
            HomePage           homepage           = new HomePage();
            ManagePoliciesPage managepoliciespage = new ManagePoliciesPage();
            EditPolicyPage     editpolicypage     = new EditPolicyPage();

            CreateNewSpecification.CreateANewSpecification();
            ManageSpecificationCreateNewPolicy.CreateANewSpecificationPolicy();

            Thread.Sleep(2000);

            IWebElement policyList = managepoliciespage.PolicyList;

            policyList.Should().NotBeNull();

            var         containerElements     = policyList;
            IWebElement firstSelectEditPolicy = null;

            if (containerElements != null)
            {
                var options = containerElements.FindElements(By.TagName("i"));
                foreach (var optionelement in options)
                {
                    if (optionelement != null)
                    {
                        firstSelectEditPolicy = optionelement;

                        break;
                    }
                }
                Thread.Sleep(1000);
                if (firstSelectEditPolicy != null)
                {
                    firstSelectEditPolicy.Click();
                    Thread.Sleep(2000);
                    editpolicypage.editPolicyName.Should().NotBeNull();
                }
                else
                {
                    firstSelectEditPolicy.Should().NotBeNull("No Edit Policy Option exist for the Policy selected");
                }
            }
            else
            {
                firstSelectEditPolicy.Should().NotBeNull("No Edit Policy Option exists");
            }

            Thread.Sleep(2000);
        }