public void DoesValidationMessageAppearsWithNoService() { AgentSearchScreen ScreenObject = AgentScreenNavigation.NavigateToAgentMenuPage(); AddNewAgentDialog dialogObj = ScreenObject.ClickAddNewAgent(); AgentServicesProvided obj = dialogObj.EnterNames(AddNewAgentDialog.RandomString(10), AddNewAgentDialog.RandomString(10)); obj.CreateButtonClick(); Assert.True(obj.IsAlertMessageAppearingOnKeepingServiceEmpty()); }
public static AgentSearchScreen AddNewAgentForReuse(string s1, string s2) //For No Match ( NEW) { AgentSearchScreen ScreenObject = AgentScreenNavigation.NavigateToAgentMenuPage(); AddNewAgentDialog dialogObj = ScreenObject.ClickAddNewAgent(); AgentServicesProvided obj = dialogObj.EnterNames(s1, s2); AgentSearchScreen mainobj = obj.SelectAgentService(); return(new AgentSearchScreen()); }
public static AgentSearchScreen AddAgentForReuse(string s1, string s2) //For Matching Result Found { AgentSearchScreen ScreenObject = AgentScreenNavigation.NavigateToAgentMenuPage(); AddNewAgentDialog dialogObj = ScreenObject.ClickAddNewAgent(); MatchingAgentScreen obj = dialogObj.PassingNames(s1, s2); AgentServicesProvided mainobj = obj.ClickOnNewAgentButton(); mainobj.SelectAgentService(); return(new AgentSearchScreen()); }
public void CanSelectAndDeleteExistingAgent() { //Can I select to delete any individual Agent record via existing Agent record screen? AgentSearchScreen ScreenObject = AgentScreenNavigation.NavigateToAgentMenuPage(); AddNewAgentDialog dialogObj = ScreenObject.ClickAddNewAgent(); string fname = AddNewAgentDialog.RandomString(10); string lname = AddNewAgentDialog.RandomString(10); AgentServicesProvided obj = dialogObj.EnterNames(fname, lname); AgentSearchScreen mainobj = obj.SelectAgentService(); POM.Helper.SeleniumHelper.CloseTab("Agent Details"); AgentSearchScreen SObj = AgentScreenNavigation.NavigateToAgentMenuPage(false); ScreenObject.SelectAgentRecordFromSearch(fname, lname); //Delete the newly added record. Assert.True(ScreenObject.DeleteAgentRecord()); }