Element element = root_element();
return element.isEnabled();
}
public void enter_text_if_enabled(String text) {
Element element = root_element();
if(this.isEnabled()) {
wait_between_steps();
element.clear();
element.sendKeys(text);
action("Entered text '" + text + "' in " + this);
} else {
action("Did not enter text '" + text + "' in disabled text field '" + this + "'");
}
}