/* 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); }
/* Add Activity Type */ public void AddActivitydetails(string ActivityShortCode, string ActivityName, string Colour) { FpAdminMenus AdminMenu = new FpAdminMenus(); AdminMenu.AdminClick(); AdminMenu.ActivityTypesClick(); Thread.Sleep(6000); PropertiesCollection.driver.SwitchTo().Frame(frame); btnAddActivityType.Click(); Thread.Sleep(6000); txtShortCode.SendKeys(ActivityShortCode); txtName.SendKeys(ActivityName); btnColour.Click(); Thread.Sleep(5000); int height = colourContainer.Size.Height; int width = colourContainer.Size.Width; Console.WriteLine(height); Console.WriteLine(width); Actions actions = new Actions(PropertiesCollection.driver); actions.MoveToElement(colourContainer).MoveByOffset((-width / 3), 2).Click().Perform(); Thread.Sleep(3000); btnOK.Click(); Thread.Sleep(5000); btnSave.Click(); }
public static void NavigateToOrgGroupSettingsPage() { Thread.Sleep(3000); FpAdminMenus adminMenus = new FpAdminMenus(); adminMenus.AdminClick(); Thread.Sleep(3000); adminMenus.OrganisationGroupSettingsClick(); }
public static void NavigateToStripSubGroupPage() { FpAdminMenus adminMenus = new FpAdminMenus(); adminMenus.AdminClick(); Thread.Sleep(1000); adminMenus.StripSubGroupsClick(); Thread.Sleep(4000); }
public void NavigateToBudgetAdminPage() { Thread.Sleep(5000); FpAdminMenus adminMenus = new FpAdminMenus(); adminMenus.AdminClick(); Thread.Sleep(3000); adminMenus.BudgetAdministrationClick(); Thread.Sleep(6000); }
public void NavigateToAssetTypeSettings() { Thread.Sleep(5000); FpAdminMenus adminMenus = new FpAdminMenus(); adminMenus.AdminClick(); Thread.Sleep(1000); adminMenus.AssetTypeSettingsClick(); Thread.Sleep(3000); }
/****** 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()); }