action("Did not enter text in element '" + this + "' since it is not enabled");
}
}
public void append_text_if_enabled(String text) {
Element element = root_element();
if(this.isEnabled()) {
wait_between_steps();
String current_text = element.getAttribute("value");
element.clear();
element.sendKeys(text + current_text);
action("Appended text '" + text + "' in " + this);
} else {
action("Did not append text in element '" + this + "' since it is not enabled");
}
}