Ejemplo n.º 1
0
 public void setTextFormValue(
     String key, String value, Boolean waitForSubmit, Boolean submitIsDisabled) {
   Locator fieldLocator = Locator.name(key);
   setFormElement(fieldLocator, value);
   if (waitForSubmit) {
     if (submitIsDisabled) waitForElement(Locators.disabledSaveAndCloseButton);
     else waitForElement(Locators.saveAndCloseButton);
   }
 }
Ejemplo n.º 2
0
 public String getFormValue(String field) {
   Locator fieldLocator = Locator.name(field);
   return getFormElement(fieldLocator);
 }