<commit_before>package org.mifos.test.acceptance.framework.savings;

import org.mifos.test.acceptance.framework.MifosPage;

import com.thoughtworks.selenium.Selenium;

public class SavingsDepositWithdrawalPage  extends MifosPage{

    public SavingsDepositWithdrawalPage(Selenium selenium) {
        super(selenium);
    }

    public void verifyPage() {
        this.verifyPage("applypayment_savingsaccount");
    }
      
    public SavingsDepositWithdrawalConfirmationPage submitAndNavigateToDepositWithdrawalConfirmationPage(DepositWithdrawalSavingsParameters params)
    {
        selenium.type("trxnDateDD", params.getTrxnDateDD());
        selenium.type("trxnDateMM", params.getTrxnDateMM());
        selenium.type("trxnDateYY", params.getTrxnDateYYYY());
        
        selenium.select("applypayment_savingsaccount.input.trxnType", "value=" + params.getTrxnTypeValue() );
 
        selenium.type("applypayment_savingsaccount.input.amount", params.getAmount());

        selenium.select("applypayment_savingsaccount.input.paymentType", "value=" + params.getPaymentTypeValue() );
        
        this.typeTextIfNotEmpty("applypayment.input.receiptId", params.getReceiptId());
        
        this.typeTextIfNotEmpty("receiptDateDD", params.getReceiptDateDD());
        this.typeTextIfNotEmpty("receiptDateMM", params.getReceiptDateMM());
        this.typeTextIfNotEmpty("receiptDateYY", params.getReceiptDateYYYY());

        selenium.click("applypayment_savingsaccount.button.submit");
        waitForPageToLoad();
               
        return new SavingsDepositWithdrawalConfirmationPage(selenium);
    }

 
}<commit_msg>added additional page load wait for deposit/withdrawal page to fix timing issue seen in revision 15774. <commit_after>package org.mifos.test.acceptance.framework.savings;

import org.mifos.test.acceptance.framework.MifosPage;

import com.thoughtworks.selenium.Selenium;

public class SavingsDepositWithdrawalPage  extends MifosPage{

    public SavingsDepositWithdrawalPage(Selenium selenium) {
        super(selenium);
    }

    public void verifyPage() {
        this.verifyPage("applypayment_savingsaccount");
    }
      
    public SavingsDepositWithdrawalConfirmationPage submitAndNavigateToDepositWithdrawalConfirmationPage(DepositWithdrawalSavingsParameters params)
    {
        this.typeTextIfNotEmpty("trxnDateDD", params.getTrxnDateDD());
        this.typeTextIfNotEmpty("trxnDateMM", params.getTrxnDateMM());
        this.typeTextIfNotEmpty("trxnDateYY", params.getTrxnDateYYYY());
        
        selenium.select("applypayment_savingsaccount.input.trxnType", "value=" + params.getTrxnTypeValue() );
        waitForPageToLoad();

        this.typeTextIfNotEmpty("applypayment_savingsaccount.input.amount", params.getAmount());

        selenium.select("applypayment_savingsaccount.input.paymentType", "value=" + params.getPaymentTypeValue() );
        
        this.typeTextIfNotEmpty("applypayment_savingsaccount.input.receiptId", params.getReceiptId());
        
        this.typeTextIfNotEmpty("receiptDateDD", params.getReceiptDateDD());
        this.typeTextIfNotEmpty("receiptDateMM", params.getReceiptDateMM());
        this.typeTextIfNotEmpty("receiptDateYY", params.getReceiptDateYYYY());

        selenium.click("applypayment_savingsaccount.button.submit");
        waitForPageToLoad();
               
        return new SavingsDepositWithdrawalConfirmationPage(selenium);
    }

 
}
{'fraction_non_alphanumeric': 0.101335656213705, 'fraction_numerical': 0.0014518002322880372, 'mean_word_length': 4.227617602427921, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1700702', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1008, 'n_words': 117}