예제 #1
0
  public ChangePasswordWindow populate(String current, String newPass, String confirm) {
    currentPassword.type(current);
    newPassword.type(newPass);
    confirmPassword.type(confirm);

    return this;
  }
 private void assertErrorText(TextField tf, String validText) {
   tf.type("");
   assertTrue("Expected validation", tf.hasErrorText("This field is required"));
   tf.type(validText);
   assertFalse("Should pass validation", tf.hasErrorText("This field is required"));
 }