예제 #1
0
  @Override
  public void verify(Map.Entry<DriverDTO, PersonDTO> data) {
    final PersonDTO person = data.getValue();
    final DriverDTO driver = data.getKey();

    SeleniumUtil.verify(firstName, person.getFirstName());
    SeleniumUtil.verify(lastName, person.getLastName());
    SeleniumUtil.verify(birthDate, person.getDateOfBirth());

    SeleniumUtil.verify(gender, person.getGender());
    SeleniumUtil.verify(maritalStatus, person.getMaritalStatus());
    SeleniumUtil.verify(licenseNumber, driver.getLicenseNumber());
    // SeleniumUtil.verify(licenseState,driver.getLicenseState());
    SeleniumUtil.verify(yearLicensed, String.valueOf(driver.getYearLicensed()));
  }
예제 #2
0
  @Override
  public void populate(Map.Entry<DriverDTO, PersonDTO> data) {
    final PersonDTO person = data.getValue();
    final DriverDTO driver = data.getKey();

    SeleniumUtil.clearAndSendKeys(firstName, person.getFirstName());
    SeleniumUtil.clearAndSendKeys(lastName, person.getLastName());
    SeleniumUtil.clearAndSendKeys(getWebDriver(), birthDate, person.getDateOfBirth());

    SeleniumUtil.selectValue(gender, person.getGender());
    SeleniumUtil.selectValue(maritalStatus, person.getMaritalStatus());
    SeleniumUtil.clearAndSendKeys(licenseNumber, driver.getLicenseNumber());
    // SeleniumUtil.selectValue(licenseState,driver.getLicenseState());
    SeleniumUtil.selectValue(yearLicensed, String.valueOf(driver.getYearLicensed()));
    SeleniumUtil.checkIndex(offense, 1);
  }