public PlacementInformationPage GivenIPressTheReportProvisionGapLink()
        {
            SelectProvidersPage      selectProvidersPage      = new SelectProvidersPage(webDriver);
            PlacementInformationPage placementInformationPage = selectProvidersPage.SelectNoSuitableProviers();

            return(placementInformationPage);
        }
示例#2
0
        public void ThenThePlacementInformationPageWillShowAnErrorStatingFor(string errorMessage, string inputType)
        {
            PlacementInformationPage placementInformationPage = new PlacementInformationPage(webDriver);

            switch (inputType)
            {
            case "NoProvidersChosen":
                placementInformationPage.VerifyErrorForNoProvidersChosen(errorMessage);
                break;

            case "StudentsOptionNotSelected":
                placementInformationPage.VerifyError_PlacementRadioButtonNotSelected(errorMessage);
                break;
            }
        }
示例#3
0
        public void ThenNumberOfStudentsFieldIs(string result)
        {
            PlacementInformationPage placementInformationPage = new PlacementInformationPage(webDriver);

            switch (result)
            {
            case "Displayed":
                placementInformationPage.VerifyNumberOfPLacementsIsVisibile();
                break;

            case "Not Displayed":
                placementInformationPage.VerifyNumberOfPLacementsIsNotVisibile();
                break;
            }
        }
示例#4
0
        public void WhenISelectForHowManyStudentsNeeded(string p0)
        {
            PlacementInformationPage placementInformationPage = new PlacementInformationPage(webDriver);

            switch (p0)
            {
            case "Yes":
                placementInformationPage.SelectRadioButtonToVerifyNumberOfStudentsFieldDisplay(p0);
                break;

            case "No":
                placementInformationPage.SelectRadioButtonToVerifyNumberOfStudentsFieldDisplay(p0);
                break;
            }
        }
示例#5
0
        public void ThenTheYouMustEnterAJobRoleUsingOrMoreCharactersForInvalidJobRoleForCharactersIsDisplayed(string errorMessage, string invalidCharacters)
        {
            PlacementInformationPage placementInformationPage = new PlacementInformationPage(webDriver);

            switch (invalidCharacters)
            {
            case "1":
                placementInformationPage.VerifyErrorJobRoleTooShort(errorMessage);
                break;

            case "100":
                placementInformationPage.VerifyErrorJobRoleTooLong(errorMessage);
                break;
            }
        }
示例#6
0
        public void ThenTheTheNumberOfStudentsMustBeOrMoreForInvalidNumberOfStudentsIsDisplayedFor(string errorMessage, string invalidNumbers)
        {
            PlacementInformationPage placementInformationPage = new PlacementInformationPage(webDriver);

            switch (invalidNumbers)
            {
            case "0":
                placementInformationPage.VerifyErrorPlacementNumberTooSmall(errorMessage);
                break;

            case "1000":
                placementInformationPage.VerifyErrorPlacementNumberTooBig(errorMessage);
                break;

            case " ":
                placementInformationPage.VerifyErrorPlacementNumberIsNull(errorMessage);
                break;
            }
        }
示例#7
0
        public void WhenIEnterInvalidNumberOfStudentsAndContinue(string p0)
        {
            PlacementInformationPage placementInformationPage = new PlacementInformationPage(webDriver);

            placementInformationPage.EnterInvalidNumberOfStudentsAndContinue(p0);
        }
示例#8
0
        public void WhenIEnterAnInvalidJobTitleAndContinue(string p0)
        {
            PlacementInformationPage placementInformationPage = new PlacementInformationPage(webDriver);

            placementInformationPage.EnterInvalidJobRoleAndContinue(p0);
        }
示例#9
0
        public void WhenIEnterNoPlacementInformationAndContinue()
        {
            PlacementInformationPage placementInformationPage = new PlacementInformationPage(webDriver);

            placementInformationPage.EnterNoPlacementInformationAndContinue();
        }