/* Add Planning Board */ public void AddPlanningBoard(string PlanningBoardName, string OrganisationGroup, string SelectOrgGroup) { FpAdminMenus AdminMenu = new FpAdminMenus(); AdminMenu.AdminClick(); AdminMenu.DefinePlanningBoardsClick(); Thread.Sleep(10000); PropertiesCollection.driver.SwitchTo().Frame(frame); btnOrgGroupSelector.Click(); Thread.Sleep(3000); txtOrganisationGroup.SendKeys(OrganisationGroup); Thread.Sleep(3000); cboOrganisationGroupSelection.Click(); Thread.Sleep(5000); btnApply.Click(); btnAddPlanningBoard.Click(); Thread.Sleep(5000); txtName.SendKeys(PlanningBoardName); btnSelectOrgGroup.Click(); Thread.Sleep(3000); txtSelectOrgGroup.SendKeys(SelectOrgGroup); Thread.Sleep(5000); ckbxSelectOrgGroup.Click(); Thread.Sleep(5000); btnApplyInAddPlanningBoard.Click(); Thread.Sleep(5000); btnSave.Click(); Thread.Sleep(8000); }
/****** Delete Planning Board ********/ public FpDefinePlanningBoardsPage DeletePlanningBoard(String PlanningBoardName, String OrganisationGroup) { FpAdminMenus AdminMenu = new FpAdminMenus(); AdminMenu.AdminClick(); AdminMenu.DefinePlanningBoardsClick(); Thread.Sleep(10000); PropertiesCollection.driver.SwitchTo().Frame(frame); Thread.Sleep(3000); btnOrgGroupSelector.Click(); Thread.Sleep(3000); txtOrganisationGroup.SendKeys(OrganisationGroup); Thread.Sleep(2000); cboOrganisationGroupSelection.Click(); Thread.Sleep(3000); btnApply.Click(); Thread.Sleep(10000); for (int i = 0; i < txtAllPlanningBoardName.Count; i++) { if (txtAllPlanningBoardName.ElementAt(i).Text.Equals(PlanningBoardName)) { btnDeletePlanningBoard.ElementAt(i).Click(); break; } } Thread.Sleep(4000); try { if (btnConfirmationOK.Displayed == true && btnConfirmationOK.Enabled == true) { btnConfirmationOK.Click(); } } catch { return(new FpDefinePlanningBoardsPage()); } return(new FpDefinePlanningBoardsPage()); }