public static TemplateSearchScreen NavigateToTemplateMenuPageFeatureBee(string[] featureList, POM.Helper.SeleniumHelper.iSIMSUserType userType = POM.Helper.SeleniumHelper.iSIMSUserType.TestUser) { POM.Helper.SeleniumHelper.Login(userType, featureList); // Feature list is a list of features which will be enable at login. POM.Helper.Wait.WaitForElementEnabled(By.CssSelector(SeleniumHelper.AutomationId("task_menu"))); POM.Helper.SeleniumHelper.ClickByJS(POM.Helper.SeleniumHelper.FindElement(By.CssSelector(SeleniumHelper.AutomationId("task_menu")))); Console.WriteLine("Clicked on taskmenu"); System.Threading.Thread.Sleep(500); //ShellAction.OpenTaskMenu(); TaskMenuActions.OpenMenuSection("section_menu_Communications"); TaskMenuActions.ClickMenuItem("task_menu_section_communications_ManageMessageTemplates"); return(new TemplateSearchScreen()); }
public static TemplateSearchScreen NavigateToTemplateMenuPage(bool loginFlag = true) { if (loginFlag) { SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.TestUser); // Will be changed to SchoolAdmin when permissions gets implemented ShellAction.OpenTaskMenu(); TaskMenuActions.OpenMenuSection("section_menu_Communications"); TaskMenuActions.ClickMenuItem("task_menu_section_communications_ManageMessageTemplates"); } else { ShellAction.OpenTaskMenu(); TaskMenuActions.ClickMenuItem("task_menu_section_communications_ManageMessageTemplates"); } WaitUntilDisplayed(TemplateElements.SearchPanel.SearchButton); return(new TemplateSearchScreen()); }
public static MessageSettingScreen navigateToMessageSettingPage(SeleniumHelper.iSIMSUserType user = SeleniumHelper.iSIMSUserType.SystemManger) { SeleniumHelper.Login(user); POM.Helper.Wait.WaitLoading(); ShellAction.OpenTaskMenu(); POM.Helper.SeleniumHelper.Sleep(1); TaskMenuActions.OpenMenuSection("section_menu_Communications"); POM.Helper.SeleniumHelper.Sleep(1); TaskMenuActions.ClickMenuItem("task_menu_section_communication_Manage_Message_Settings"); POM.Helper.Wait.WaitLoading(); if (new MessageSettingScreen().isPageDisplayed()) { return(new MessageSettingScreen()); } else { throw new NoSuchElementException("Message Setting screen not displayed."); } }
public static AgentSearchScreen NavigateToAgentMenuPage(bool loginFlag = true) { if (loginFlag) { SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.SchoolAdministrator); POM.Helper.Wait.WaitLoading(); ShellAction.OpenTaskMenu(); TaskMenuActions.OpenMenuSection("section_menu_Communications"); TaskMenuActions.ClickMenuItem("task_menu_section_communication_Agents"); WaitUntilDisplayed(AgentElements.SearchPanel.SearchButton); } else { ShellAction.OpenTaskMenu(); POM.Helper.Wait.WaitLoading(); TaskMenuActions.ClickMenuItem("task_menu_section_communication_Agents"); WaitUntilDisplayed(AgentElements.SearchPanel.SearchButton); } return(new AgentSearchScreen()); }
//Method to validate entry of Manage Message Template menu in taskmenu public static bool ValidateManageMessageTemplateMenu() { POM.Helper.Wait.WaitForElementEnabled(By.CssSelector(SeleniumHelper.AutomationId("task_menu"))); POM.Helper.SeleniumHelper.ClickByJS(POM.Helper.SeleniumHelper.FindElement(By.CssSelector(SeleniumHelper.AutomationId("task_menu")))); System.Threading.Thread.Sleep(500); //ShellAction.OpenTaskMenu(); TaskMenuActions.OpenMenuSection("section_menu_Communications"); bool returnVal = POM.Helper.SeleniumHelper.DoesWebElementExist(By.CssSelector(SeleniumHelper.AutomationId("task_menu_section_communications_ManageMessageTemplates"))); if (returnVal == false) { return(returnVal); } else { TaskMenuActions.ClickMenuItem("task_menu_section_communications_ManageMessageTemplates"); POM.Helper.Wait.WaitForElement(By.CssSelector(SeleniumHelper.AutomationId("add_button"))); return(POM.Helper.SeleniumHelper.DoesWebElementExist(By.CssSelector(SeleniumHelper.AutomationId("add_button")))); } }