コード例 #1
0
  public static void verifyAllFieldsCleared(String recordType, WebDriver driver) {
    try {
      Record record = loadRecordOfType(recordType);
      verifyFieldsAreCleared(driver, record.getFieldMap());
      verifySelectFieldsCleared(driver, record.getSelectMap());

    } catch (Exception e) {
      log(e.getMessage());
    }
  }
コード例 #2
0
  /** Clears all fields except required fields */
  public static void clearAllFieldsFor(String recordType, WebDriver driver) {
    try {
      Record record = loadRecordOfType(recordType);
      clearFields(driver, record.getFieldMap());
      clearSelectFields(driver, record.getSelectMap());
      clearVocabFields(driver, record.getVocabMap());
      // TODO ADD Dates and Checkboxes

    } catch (Exception e) {
      log(e.getMessage());
    }
  }