private ClientViewDetailsPage navigateToClientViewDetails( CreateClientEnterPersonalDataPage.SubmitFormParameters formParameters) { ClientViewDetailsPage clientViewDetailsPage = new CreateClientConfirmationPage(selenium).navigateToClientViewDetailsPage(); clientViewDetailsPage.verifyName( formParameters.getFirstName() + " " + formParameters.getLastName()); clientViewDetailsPage.verifyDateOfBirth( formParameters.getDateOfBirthDD(), formParameters.getDateOfBirthMM(), formParameters.getDateOfBirthYYYY()); clientViewDetailsPage.verifySpouseFather( formParameters.getSpouseFirstName() + " " + formParameters.getSpouseLastName()); clientViewDetailsPage.verifyHandicapped(formParameters.getHandicapped()); return clientViewDetailsPage; }
public CreateClientEnterPersonalDataPage createClientForFamilyInfo( String officeName, String dd, String mm, String yy) { CreateClientEnterPersonalDataPage clientPersonalDataPage = navigateToPersonalDataPage(officeName); CreateClientEnterPersonalDataPage.SubmitFormParameters formParameters = new CreateClientEnterPersonalDataPage.SubmitFormParameters(); formParameters.setLastName("Customer" + StringUtil.getRandomString(8)); formParameters.setSalutation(CreateClientEnterPersonalDataPage.SubmitFormParameters.MRS); formParameters.setFirstName("test"); formParameters.setDateOfBirthYYYY(yy); formParameters.setLastName("Customer" + StringUtil.getRandomString(8)); formParameters.setDateOfBirthDD(dd); formParameters.setDateOfBirthMM(mm); formParameters.setGender(CreateClientEnterPersonalDataPage.SubmitFormParameters.FEMALE); formParameters.setPovertyStatus(CreateClientEnterPersonalDataPage.SubmitFormParameters.POOR); formParameters.setHandicapped("Yes"); return clientPersonalDataPage.createWithoutSpouse(formParameters); }