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 addDevelopmentActivity(String SheetName, String Keyname) { ReferenceMaterialPage referencematerial = new ReferenceMaterialPage(_driver); ArrayList list = BaseClass.GetData("ER_TESTDATA", SheetName, "KeyName", Keyname); nametext = list[1].ToString() + "_" + DateTime.Now.ToString().Replace(' ', '_').Replace(':', '_').Replace('/', '_'); HomePage home = new HomePage(_driver); home.EperformReferenceMaterialArrowIcon.Click(); home.EperformDevelopmentActivitiesOption.Click(); System.Threading.Thread.Sleep(3000); referencematerial.EperformAddDevelopmentActivityButton.Click(); System.Threading.Thread.Sleep(2000); referencematerial.EperformNameTextBox.SendKeys(nametext); if (list[2].ToString() == "Yes") { referencematerial.EperformActiveYesRadioBtn.Click(); } else { referencematerial.EperfromActiveNoRadioBtn.Click(); } referencematerial.EperformDescriptionTextBox.SendKeys(list[3].ToString()); EperformPillarDropDownIcon.Click(); BaseMethods.DdlSelectByText(EperformPillarDropDownIcon, list[4].ToString()); System.Threading.Thread.Sleep(2000); EperformDataTextBox.SendKeys(list[5].ToString()); //we will remove the code bug EpeformSelectMultipleCheckBox.Click(); EperformSelectSingleRadioBtn.Click(); EperformSubmit.Click(); System.Threading.Thread.Sleep(2000); BaseMethods.verifyWebElement(EperformSuccessMessage, "Eperform Success Message is not displayed", "Eperform Success Message is displayed"); }