//Submit Account Number and Date of Birth public AccountSummaryPage Submit(FileReader fileObj) { txtAccountNumber.SendKeys(fileObj.info(2)); txtDOB1.SendKeys(fileObj.info(3)); btnSubmit.Click(); return new AccountSummaryPage("btnMakePayment"); }
//Login Credentials public SecureLoginPage Login(FileReader fileObj) { txtUserID.SendKeys(fileObj.info(0)); txtPassword.SendKeys(fileObj.info(1)); btnLogin.Submit(); return new SecureLoginPage("account-number"); }
//Enter values for each loan and submit public SpecialPaymentPage SubmitPayment(FileReader fileObj) { txtAmount1.Clear(); txtAmount1.SendKeys(fileObj.info(4)); txtAmount2.Clear(); txtAmount2.SendKeys(fileObj.info(5)); txtAmount3.Clear(); txtAmount3.SendKeys(fileObj.info(6)); txtAmount4.Clear(); txtAmount4.SendKeys(fileObj.info(7)); txtAmount5.Clear(); txtAmount5.SendKeys(fileObj.info(8)); txtAmount6.Clear(); txtAmount6.SendKeys(fileObj.info(9)); txtAmount7.Clear(); txtAmount7.SendKeys(fileObj.info(10)); btnNext.Click(); return new SpecialPaymentPage(); }