public void editDevelopmentActivity(String SheetName, String Keyname)
        {
            ReferenceMaterialPage referencematerial = new ReferenceMaterialPage(_driver);
            ArrayList             list = BaseClass.GetData("ER_TESTDATA", SheetName, "KeyName", Keyname);

            addDevelopmentActivity("DevelopmentActivityForm", "DevelopmentActivityform_01");
            System.Threading.Thread.Sleep(2000);
            EperformSearchButton.Click();
            BaseMethods.webelementverify(DeveLopmentActivitiesText);

            search(list[8].ToString());
            BaseMethods.webelementverify(ErrorText);
            search(nametext);
            EperformEditButton.Click();
            referencematerial.EperformNameTextBox.Clear();
            referencematerial.EperformNameTextBox.SendKeys(list[1].ToString());
            referencematerial.EperfromActiveNoRadioBtn.Click();
            referencematerial.EperformDescriptionTextBox.Clear();
            referencematerial.EperformDescriptionTextBox.SendKeys(list[6].ToString());
            EperformPillarDropDownIcon.Click();
            BaseMethods.DdlSelectByText(EperformPillarDropDownIcon, list[7].ToString());
            EperformSubmit.Click();
            System.Threading.Thread.Sleep(2000);
            search(nametext);
            BaseMethods.webelementverify(NameText);
            BaseMethods.webelementverify(DescriptionText);
            BaseMethods.webelementverify(PillarText);
            BaseMethods.webelementverify(EperformNoText);
        }
        public void developmentActivityEditSearch(String SheetName, String Keyname)
        {
            HomePage homepage = new HomePage(_driver);
            DataRow  data     = ExcelData.GetData_DataTable("EP_TESTDATA", SheetName, "KeyName", Keyname).Rows[0];

            nametext = data["FormName"].ToString() + "_" + DateTime.Now.ToString().Replace(' ', '_').Replace(':', '_').Replace('/', '_');
            homepage.EperformSystemConfigurationArrowIcon.Click();
            homepage.EperformFormTemplatesOption.Click();
            System.Threading.Thread.Sleep(2000);
            EperformAddFormTemplateButton.Click();
            System.Threading.Thread.Sleep(2000);
            BaseMethods.verifyWebElement(EperformNameTextBox, "Eperform Name TextBox is not displayed in manage form", "Eperform Name TextBox is displayed in manage form");

            System.Threading.Thread.Sleep(2000);
            EperformNameTextBox.SendKeys(nametext);

            if (data["Active"].ToString() == "Yes")
            {
                EperformYesRadioButton.Click();
            }
            else
            {
                EperformNoRadioButton.Click();
            }
            EperformSelectformtype.Click();
            System.Threading.Thread.Sleep(2000);
            BaseMethods.DdlSelectByValue(EperformSelectformtype, data["Form Type"].ToString());
            System.Threading.Thread.Sleep(2000);
            EperformSubmitButton.Click();
            BaseMethods.verifyWebElement(EperformSuccessMessage, "Eperform Success Message is not displayed in manage form", "Eperform Success Message is displayed in manage form");
            addGlobalQuestion("FormTemplateTest", "FormType2");
            EperformCancelButton.Click();
            System.Threading.Thread.Sleep(2000);
            EperformFormTemplateSearchTextBox.SendKeys(nametext);
            EperformFormTemplateSearchButton.Click();
            System.Threading.Thread.Sleep(2000);
            EperformEditButton.Click();
            System.Threading.Thread.Sleep(2000);
            EperformEditButton.Click();
        }