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 GivenINavigateToTheRegistrationDetailsPageForMyRegistrationWhichIsWithdrawnAndActiveWithAnotherAO() { var uln = scenarionContext["uln"] as string; RegistrationsPage.ClickRegLink(); RegistrationsPage.ClickManageExistingRegistrationsLink(); RegistrationsSearchPage.SearchForULN(uln); }
public void GivenISearchTheRegistration() { var uln = _scenarioContext["uln"] as string; RegistrationsPage.ClickRegLink(); RegistrationsManualPage.ClickSearchForRegistrationLink(); EnterText(RegistrationsSearchPage.SearchBox, uln); ClickElement(RegistrationsSearchPage.SearchBtn); }
public void GivenIAmOnRegistrationDetailsPage() { var uln = _scenarioContext["uln"] as string; RegistrationsPage.ClickRegLink(); ClickElement(RegistrationsSearchPage.SearchRegistrationLink); EnterText(RegistrationsSearchPage.SearchBox, uln); ClickElement(RegistrationsSearchPage.SearchBtn); }
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 GivenIUploadASingleRegistrationAndNavigateToTheSearchForALearnerPage() { SqlQueries.DeleteFromAssessmentTables(); SqlQueries.DeleteFromRegistrationTables(); SqlQueries.DeleteFromRegistrationTables(); RegistrationsPage.ClickRegLink(); ClickElement(RegistrationsPage.UploadRegistationLink); UploadFile(RegistrationsPage.ChooseFile, "1879RegistrationsDataForAssessments.csv"); ClickElement(RegistrationsPage.SubmitFileBtn); RegistrationsPage.VerifyRegistrationSuccessPage(); ClickElement(TlevelDashboardPage.DashboardHeadLink); ClickElement(AssessmentEntriesLink); }
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 GivenIUploadRegistrationsAndAssociatedAssessments() { SqlQueries.DeleteFromRegistrationTables(); RegistrationsPage.ClickRegLink(); ClickElement(RegistrationsPage.UploadRegistationLink); UploadFile(RegistrationsPage.ChooseFile, "1879RegistrationsDataForAssessments.csv"); ClickElement(RegistrationsPage.SubmitFileBtn); RegistrationsPage.VerifyRegistrationSuccessPage(); ClickElement(TlevelDashboardPage.DashboardHeadLink); ClickElement(AssessmentEntriesLink); ClickElement(UploadAssessmentEntryLink); VerifyAssessmentEntriesUploadPage(); UploadFile(RegistrationsPage.ChooseFile, "1879AssessmentEntrySuccessfulData.csv"); CommonPage.ClickButtonByLabel("Submit"); VerifyAssessmentUploadSuccessPage(); ClickBacktoAssessmentEntriesButton(); }
public void WhenIAmOnSelectSpecialismPage() { RegistrationsPage.ClickRegLink(); SqlQueries.DeleteFromRegistrationTables(); AddRegistrations(); EnterUln("9900000001"); ClickContiune(); EnterLearnerName("FirstName1", "LastName1"); ClickContiune(); EnterDob("1", "1", "2010"); ClickContiune(); SelectProviderFromList(InputPovider); ClickContiune(); SelectCoreFromList(InputCore); ClickContiune(); ClickElement(DecideYes); ClickContiune(); }
public void GivenIUploadedFollowingFiles(Table table) { var(Registration, Assessment, Result) = table.CreateInstance <(string Registration, string Assessment, string Result)>(); RegistrationsPage.ClickRegLink(); ClickElement(RegistrationsPage.UploadRegistationLink); UploadFile(RegistrationsPage.ChooseFile, Registration); ClickElement(RegistrationsPage.SubmitFileBtn); ClickElement(TlevelDashboardPage.DashboardHeadLink); ClickElement(AssessmentEntriesPage.AssessmentEntriesLink); ClickElement(AssessmentEntriesPage.UploadAssessmentEntryLink); UploadFile(RegistrationsPage.ChooseFile, Assessment); ClickElement(RegistrationsPage.SubmitFileBtn); ClickElement(TlevelDashboardPage.DashboardHeadLink); ClickResultsLink(); WebDriver.FindElement(UploadResultLink).Click(); UploadFile(RegistrationsPage.ChooseFile, Result); ClickElement(RegistrationsPage.SubmitFileBtn); ClickElement(TlevelDashboardPage.DashboardHeadLink); }
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 GivenIAmOnRegistrationUploadPage() { RegistrationsPage.ClickRegLink(); ClickElement(RegistrationsPage.UploadRegistationLink); }
public void GivenINavigatedToSerachRegistrationPage() { RegistrationsPage.ClickRegLink(); ClickElement(SearchRegistrationLink); }
public void WhenIClickOnAddANewRegistrationLink() { SqlQueries.DeleteFromRegistrationTables(); RegistrationsPage.ClickRegLink(); AddRegistrations(); }
public void WhenILoggedInWithRegistrationEditorUser() { DfESignInPage.SigninAsRegistrationEditor(); RegistrationsPage.ClickRegLink(); AddRegistrations(); }
public void WhenIClickOnSearchForARegistrationLink() { SqlQueries.DeleteFromRegistrationTables(); RegistrationsPage.ClickRegLink(); ClickSearchForRegistrationLink(); }
public void GivenIAmOnRegistrationsUploadPage() { SqlQueries.DeleteFromRegistrationTables(); RegistrationsPage.ClickRegLink(); ClickElement(RegistrationsPage.UploadRegistationLink); }