select_code_if_enabled(option);
}
public void select_code_if_enabled(final String code) {
Elements root_elements = root_elements();
Element element_to_select = root_elements.findFirstElementThatMatches(new Predicate<Element>() {
public boolean apply(Element input) {
String value = input.getAttribute("value");
if(value == null) return Boolean.FALSE;
return value.trim().equals(code);
}