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;
}
Aggregations