public void GivenIEnterAnEmployerBusinessNameAndContinue(string typeOfEmployer) { WhoIsTheEmployerPage whoIstheEmployerPage = new WhoIsTheEmployerPage(webDriver); switch (typeOfEmployer) { case "testNameForGeneralFlow": whoIstheEmployerPage.EnterEmployerBusinessNameAndContinue(Constants.employerName); break; case "testNameForPageCheck": whoIstheEmployerPage.EnterEmployerBusinessNameAndContinue(Constants.testEmployerNameForVerification); break; } }
public void ThenTheWhoIsTheEmployerPageWillShowAnErrorStating(string errorMessage) { WhoIsTheEmployerPage whoIstheEmployerPage = new WhoIsTheEmployerPage(webDriver); whoIstheEmployerPage.VerifyNullEmployerError(errorMessage); }
public void WhenIEnterNoEmployerBusinessNameAndContinue() { WhoIsTheEmployerPage whoIstheEmployerPage = new WhoIsTheEmployerPage(webDriver); whoIstheEmployerPage.EnterNoEmployerBusinessNameAndContinue(); }