public void WhenISearchForMyRegistration() { RegistrationsSearchPage.NavigateTo("registrations"); RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.ValidateChangeStatusLink(); }
public void GivenIWithdrawTheRegistrationAndReactivateIt() { var uln = scenarionContext["uln"] as string; WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click(); ResultsLearnersResultsPage.ClickHomeBreadcrumb(); RegistrationsPage.ClickRegLink(); RegistrationsManualPage.ClickSearchForRegistrationLink(); RegistrationsSearchPage.SearchForULN(uln); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickWithdrawRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); RegistrationsWithdrawRegistrations.WithdrawApplication(); RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsWithdrawOptionsPage.ClickReactiveRegistrationRadioButton(); RegistrationsWithdrawOptionsPage.ClickContinueButton(); RegistrationReactivateAreYouSurePage.ClickYesRadioButton(); RegistrationReactivateAreYouSurePage.ClickSubmitButton(); RegistrationReactivate.ClickViewThisRegistrationButton(); RegistrationsSearchPage.PressHomeBreadcrumb(); ResultsDashboardPage.ClickResultsLink(); ResultsDashboardPage.searchResult(uln); }
public void ThenIAmNavigatedToTheRegistrationDetailsPageWhichShowsMyRegistrationIsWithdrawn() { RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ValidateUlnStatus("WITHDRAWN"); RegistrationsSearchPage.VerifyRegistrationDetailsPageSubHeading(); RegistrationsSearchPage.ValidateChangeLinksAreNotDisplayed(); }
public void WhenIClickWithdrawRegistrationOnTheChangeCorePage() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeCoreLink(); RegistrationChangeCorePage.ClickWithdrawButton(); }
public void WhenICancelTheRegistrationAfterNavigatingToTheRegistrationDetailsFromTheChangeNamePage() { RegistrationChangeNamePage.ClickBackLink(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickDeleteRegistrationRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); RegistrationsActiveOptionPage.YesToCancelReg(); }
public void ThenIShouldSeeRegistrationWithNewlyAddedData() { RegistrationsSearchPage.VerifyName("FirstName1 LastName1"); RegistrationsSearchPage.VerifyDob("01/01/2010"); RegistrationsSearchPage.VerifyProvider("Automation Test2 (99999902)"); RegistrationsSearchPage.VerifyCore("Legal, Finance and Accounting (55555555)"); RegistrationsSearchPage.VerifySpecialism("Financial (50000002)"); }
public void GivenINavigateToTheRegistrationDetailsPageForMyRegistrationWhichIsWithdrawnAndActiveWithAnotherAO() { var uln = scenarionContext["uln"] as string; RegistrationsPage.ClickRegLink(); RegistrationsPage.ClickManageExistingRegistrationsLink(); RegistrationsSearchPage.SearchForULN(uln); }
public void WhenIClickWithdrawRegistrationOnTheActiveOptionsPage() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickWithdrawRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); }
public void ThenClickingOnButtonShouldTakeMeToRegistrationDetailsPage(string p0) { CommonPage.ClickButtonByLabel("Continue"); ClickButton(RegistrationsSearchPage.BackToRegistrationDetailsBtn); RegistrationsSearchPage.VerifySearchResultPage(); string uln = _scenarioContext["uln"] as string; RegistrationsSearchPage.VerifyRegistrationDetailsPageULNSubHeading(uln); DeleteRegistrationFromTables(uln); }
public void ThenIAmShownTheRegistrationDetailsPageWithTheNewRegistrationDetails() { string expectedName = Constants.ManualRegFirstName + " " + Constants.ManualRegLastName; //Assert.IsTrue(WebDriver.FindElement(By.Id("main-content")).Text.Contains(Constants.ManualRegULN)); RegistrationsSearchPage.VerifyProvider(Constants.ManualRegUpdatedProvider); RegistrationsSearchPage.VerifyCore(Constants.ManualRegUpdatedCore); RegistrationsSearchPage.VerifySpecialism(Constants.ManualRegUpdatedSpecialism); RegistrationsSearchPage.VerifyName(expectedName); RegistrationsSearchPage.VerifyDOBChangesAreDisplayed(Constants.ManualRegDOBDay, Constants.ManualRegDOBMonth, Constants.ManualRegDOBYear); RegistrationsSearchPage.VerifyActiveYear(); }
public void WhenIWithdrawMyRegistrationStartingOnTheActiveOptionsPage() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickWithdrawRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage(); RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected(); RegistrationsWithdrawRegistrations.WithdrawApplication(); }
public void GivenIAttemptToDeleteTheRegistrationWhichHasIPDataAgainstIt() { var uln = scenarionContext["uln"] as string; RegistrationsPage.ClickRegLink(); RegistrationsManualPage.ClickSearchForRegistrationLink(); RegistrationsSearchPage.SearchForULN(uln); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickDeleteRegistrationRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); }
public void GivenINavigateToTheDeleteRegistrationPage() { var uln = scenarionContext["uln"] as string; RegistrationsPage.ClickRegLink(); RegistrationsManualPage.ClickSearchForRegistrationLink(); RegistrationsSearchPage.SearchForULN(uln); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickDeleteRegistrationRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); }
public void WhenIClickWithdrawRegistrationOnTheChangeProviderAndCorePage() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeProviderLink(); RegistrationChangeProviderPage.SelectProviderFromList(Constants.ManualRegUpdatedProvider1); RegistrationChangeProviderPage.ClickChangeButton(); RegistrationChangeCorePage.ClickYesRadioButton_AreYouSureChangeCorePage(); RegistrationChangeCorePage.ClickContinueButton_AreYouSureChangeCorePage(); RegistrationChangeProviderAndCorePage.ClickWithdrawButton(); }
public void WhenIClickWithdrawRegistrationButtonOnTheChangeProviderAndCorePage() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeProviderLink(); RegistrationChangeProviderPage.SelectProviderFromList("Automation Test1 (99999901)"); RegistrationChangeProviderPage.ClickChangeButton(); RegistrationChangeCorePage.ClickYesRadioButton_AreYouSureChangeCorePage(); RegistrationChangeCorePage.ClickContinueButton_AreYouSureChangeCorePage(); RegistrationChangeProviderAndCorePage.ClickWithdrawButton(); }
public void GivenIAttemptToDeleteAnActiveRegistrationWithoutAnActiveResult() { var uln = scenarionContext["uln"] as string; WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click(); ResultsLearnersResultsPage.ClickHomeBreadcrumb(); RegistrationsPage.ClickRegLink(); RegistrationsManualPage.ClickSearchForRegistrationLink(); RegistrationsSearchPage.SearchForULN(uln); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationDeletePage.ClickElement(RegistrationDeletePage.DeleteRadioBtn); RegistrationDeletePage.ClickElement(RegistrationDeletePage.ContinueBtn); RegistrationsActiveOptionPage.YesToCancelReg(); }
public void WhenIWithdrawMyApplicationAndNavigateToTheWithdrawnRegistrationDetailsPage() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickWithdrawRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage(); RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected(); RegistrationsWithdrawRegistrations.WithdrawApplication(); RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage(); RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ValidateUlnStatus("WITHDRAWN"); RegistrationsSearchPage.VerifyRegistrationDetailsPageSubHeading(); }
public void WhenIWithdrawTheRegistrationAndThenReactivateThisRegistrationWithTheSameCourse() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickWithdrawRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage(); RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected(); RegistrationsWithdrawRegistrations.WithdrawApplication(); RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage(); RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton(); //RegistrationsSearchPage.ValidateUlnStatusWithdrawn(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsWithdrawOptionsPage.ClickReactiveRegistrationRadioButton(); RegistrationsWithdrawOptionsPage.ClickContinueButton(); }
public void WhenIWithdrawMyApplicationAndNavigateToTheResultsSearchForALearnerPage() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickWithdrawRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage(); RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected(); RegistrationsWithdrawRegistrations.WithdrawApplication(); RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage(); RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ValidateUlnStatus("WITHDRAWN"); RegistrationsSearchPage.PressHomeBreadcrumb(); ClickLinkByLabel("Results"); ClickLinkByLabel("Search for a learner"); }
public void GivenIAttemptToDeleteAnActiveRegistrationWithoutAnActiveResultHoweverSomeoneElseHasJustAddedAResult() { var uln = scenarionContext["uln"] as string; WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click(); ResultsLearnersResultsPage.ClickHomeBreadcrumb(); RegistrationsPage.ClickRegLink(); RegistrationsManualPage.ClickSearchForRegistrationLink(); RegistrationsSearchPage.SearchForULN(uln); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationDeletePage.ClickElement(RegistrationDeletePage.DeleteRadioBtn); RegistrationDeletePage.ClickElement(RegistrationDeletePage.ContinueBtn); int PAID = SqlQueries.RetrievePathwayAssessmentID(uln); SqlQueries.CreatePathwayResult(PAID); //RegistrationsActiveOptionPage.YesToCancelReg(); }
public void GivenICreateANewRegistrationWhichISubsequentlyWithdraw() { SqlQueries.DeleteFromRegistrationTables(); RegistrationsManualPage.AddNewRegistrations(); RegistrationsManualPage.CreateRegistrationWithSpecialism(Constants.ManualRegULN, Constants.ManualRegFirstName, Constants.ManualRegLastName, Constants.ManualRegDOBDay, Constants.ManualRegDOBMonth, Constants.ManualRegDOBYear); RegistrationsManualPage.ClickSubmit(); ClickElement(RegistrationsPage.BacktoRegistrationLink); ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsActiveOptionPage.ClickWithdrawRadioButton(); RegistrationsActiveOptionPage.ClickContinueButton(); RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage(); RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected(); RegistrationsWithdrawRegistrations.WithdrawApplication(); RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage(); RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton(); RegistrationsSearchPage.VerifySearchResultPage(); RegistrationsSearchPage.ValidateUlnStatus("WITHDRAWN"); RegistrationsSearchPage.VerifyRegistrationDetailsPageSubHeading(); }
public void WhenIClickTheChangeStatusLinkOnTheWithdrawnOptionsPage() { RegistrationsSearchPage.ClickChangeStatusLink(); RegistrationsWithdrawOptionsPage.VerifyRegistrationsWithdrawOptionsPage(); RegistrationsWithdrawOptionsPage.VerifyRadioButtonsNotSelected(); }
public void ThenIAmShownTheRegistrationDetailsPage() { RegistrationsSearchPage.VerifySearchResultPage(); }
public void WhenIClickTheChangeLinkNextToDOB() { RegistrationsSearchPage.ClickDOBChangeLink(); }
public void WhenIClickTheChangeLinkNextToName() { RegistrationsSearchPage.ClickNameChangeLink(); }
public void ThenIWillBeDirectedToTheRegistrationDetailsPage() { RegistrationsSearchPage.VerifySearchResultPage(); }
public void GivenISearchForMyRegistration() { RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink); RegistrationsSearchPage.SearchForULN(); }
public void ThenTheULNStatusWillBeActive() { RegistrationsSearchPage.ValidateUlnStatus("ACTIVE"); }
public void ThenIShouldSeeResultsInThePage() { RegistrationsSearchPage.VerifySearchResultPage(); }
public void ThenIWillSeeTheChangeStatusLink() { RegistrationsSearchPage.ValidateChangeStatusLink(); }