Search in sources :

Example 1 with CaptureQuestionResponse

use of org.mifos.test.acceptance.framework.questionnaire.CaptureQuestionResponse in project head by mifos.

the class SavingsAccountHelper method fillQuestionGroupsDuringClosingSavingsAccount.

public SavingsAccountDetailPage fillQuestionGroupsDuringClosingSavingsAccount(String savingsId, QuestionResponseParameters questionResponseParameters, String[] questionsExist) {
    NavigationHelper helper = new NavigationHelper(selenium);
    SavingsAccountDetailPage savingsAccountDetailPage = helper.navigateToSavingsAccountDetailPage(savingsId);
    savingsAccountDetailPage.verifyPage();
    SavingsCloseAccountPage savingsCloseAccountPage = savingsAccountDetailPage.navigateToCloseAccount();
    savingsCloseAccountPage.verifyPage();
    CaptureQuestionResponse captureQuestionResponse = savingsCloseAccountPage.submitAndNavigateToQuestionnairePage("Closing Savings with QG");
    captureQuestionResponse.verifyQuestionsExists(questionsExist);
    captureQuestionResponse.populateAnswers(questionResponseParameters);
    captureQuestionResponse.navigateToNextPageSavingsAccountClosing();
    savingsAccountDetailPage = savingsCloseAccountPage.clickCloseButton();
    savingsAccountDetailPage.verifyPage();
    return savingsAccountDetailPage;
}
Also used : SavingsCloseAccountPage(org.mifos.test.acceptance.framework.savings.SavingsCloseAccountPage) CaptureQuestionResponse(org.mifos.test.acceptance.framework.questionnaire.CaptureQuestionResponse) SavingsAccountDetailPage(org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage)

Aggregations

CaptureQuestionResponse (org.mifos.test.acceptance.framework.questionnaire.CaptureQuestionResponse)1 SavingsAccountDetailPage (org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage)1 SavingsCloseAccountPage (org.mifos.test.acceptance.framework.savings.SavingsCloseAccountPage)1