public static void AmIOnTicketPageSwitch(string module, string ticketNum) { switch (module) { case "Incident": { IncidentPage.AmIOnPage(); IncidentPage.IsTicketNumberCorrect(ticketNum); break; } case "Incident task": { IncidentTaskPage.AmIOnPage(); IncidentTaskPage.IsTicketNumberCorrect(ticketNum); break; } case "Problem": { ProblemPage.AmIOnPage(); ProblemPage.IsTicketNumberCorrect(ticketNum); break; } case "Change": { ChangePage.AmIOnPage(); ChangePage.IsTicketNumberCorrect(ticketNum); break; } case "Change task": { ChangeTaskPage.AmIOnPage(); ChangeTaskPage.IsTicketNumberCorrect(ticketNum); break; } case "Flex1": { FlexPage.AmIOnPage(module); FlexPage.IsTicketNumberCorrect(module, ticketNum); break; } case "Flex2": { FlexPage.AmIOnPage(module); FlexPage.IsTicketNumberCorrect(module, ticketNum); break; } case "Announcement": { AnnouncementPage.AmIOnPage(); break; } case "Knowledge Base": { KBPage.AmIOnPage(ticketNum); break; } case "Survey": { SurveyPage.AmIOnPage(); break; } case "Report": { ReportsPage.AmIOnPage(); break; } case "CI": { CIPage.AmIOnPage(ticketNum); break; } default: { log.Error("This module[" + module + "] does not exist. Check the feature file for errors."); Assert.Fail("This module[" + module + "] does not exist. Check the feature file for errors."); break; } } }