public void createGoal(String SheetName, String keyword)
        {
            DataRow data = ExcelData.GetData_DataTable("ER_TESTDATA", SheetName, "KeyName", keyword).Rows[0];

            nametext = data["FormName"].ToString() + "_" + DateTime.Now.ToString().Replace(' ', '_').Replace(':', '_').Replace('/', '_');
            EperformSubmitButton.Click();
            BaseMethods.webelementverify(EperformErrorMessageText);
            BaseMethods.webelementverify(EperformNameTextFiledErrorMessage);
            BaseMethods.webelementverify(EperformDescriptionTextFieldErrorMessage);
            EperformGoalNameTextBox.SendKeys(nametext);
            EperformDescriptionTextBox.SendKeys(data["Description"].ToString());
            EperformPillarId.Click();
            BaseMethods.DdlSelectByText(EperformPillarId, data["Pillar"].ToString());
            if (data["IsRated"].ToString() == "Yes")
            {
                EperformRatedYesRadioButton.Click();
            }
            else
            {
                EperformRatedNoRadioButton.Click();
            }
            EperformMeasureId.Click();
            BaseMethods.DdlSelectByText(EperformMeasureId, data["Measure"].ToString());
            EperformParentGoalId.Click();
            BaseMethods.DdlSelectByText(EperformParentGoalId, data["ParentGoal"].ToString());
            //Select the Goal Type
            if (data["Goal Type"].ToString() == "Organisation Goal")
            {
                EperformGoalTypeId.Click();
                BaseMethods.DdlSelectByText(EperformGoalTypeId, data["Goal Type"].ToString());
            }
            else
            {
                EperformGoalTypeId.Click();
                BaseMethods.DdlSelectByText(EperformGoalTypeId, data["Goal Type"].ToString());
                _driver.FindElement(By.XPath("//label[contains(text(),'" + data["Position Goal"].ToString() + "')]")).Click();
            }
            if (data["IsActive"].ToString() == "Yes")
            {
                EperformActiveYesRadioButton.Click();
            }
            else
            {
                EperformActiveNoRadioButton.Click();
            }
            EperformSubmitButton.Click();
            BaseMethods.webelementverify(EperformSuccessMessageText);
            search(nametext);
            EperformViewHierarachyLink.Click();
        }
 public void manageGoalPage()
 {
     BaseMethods.webelementverify(EperformGoalNameText);
     BaseMethods.webelementverify(EperformGoalDescriptionText);
     BaseMethods.webelementverify(EperformTypePillarText);
     BaseMethods.webelementverify(EperformPillarId);
     EperformPillarId.Click();
     BaseMethods.webelementverify(EperformPillarFirstList);
     foreach (IWebElement element in EperformPillarList)
     {
         BaseMethods.webelementverify(element);
     }
     BaseMethods.webelementverify(EperformGoalRatedText);
     BaseMethods.webelementverify(EperformMeasureIdText);
     BaseMethods.webelementverify(EperformMeasureId);
     EperformMeasureId.Click();
     BaseMethods.webelementverify(EperformMeasureFirstList);
     foreach (IWebElement MeasureList in EperformMeasureList)
     {
         BaseMethods.webelementverify(MeasureList);
     }
     BaseMethods.webelementverify(EperformParentGoalText);
     BaseMethods.webelementverify(EperformParentGoalId);
     EperformParentGoalId.Click();
     foreach (IWebElement ParentGoalList in EperformParentGoalList)
     {
         BaseMethods.webelementverify(ParentGoalList);
     }
     BaseMethods.webelementverify(EperformGoalTypeText);
     BaseMethods.webelementverify(EperformGoalTypeId);
     EperformGoalTypeId.Click();
     foreach (IWebElement GoalTypeList in EperformGoalTypeList)
     {
         BaseMethods.webelementverify(GoalTypeList);
     }
     BaseMethods.webelementverify(EperformActivetext);
     BaseMethods.webelementverify(EperformActiveYesText);
     BaseMethods.verifyWebElement(EperformSubmitButton, "The Submit button is not displayed in manage goal", "The Submit button is  displayed in manage goal");
     BaseMethods.verifyWebElement(EperformCancelButton, "The cancel button is not displayed in manage goal", "The cancel button is displayed in manage goal");
 }