option_strings = Strings.instance_from(options.asString());
return option_strings;
}
public Strings get_selected_options() {
Elements options = root_element().findElements(By.tagName("option"));
Elements selected_options = options.findElementsThatMatch(new Predicate<Element>() {
public boolean apply(Element input) {
String selected = input.getAttribute("selected");
if(StringUtils.isNotBlank(selected)) {
return selected.equals("selected") || selected.equals("true");
}
return false;
}
});
return selected_options.toStrings();
}