});
return selected_options.toStrings();
}
public void should_have_these_options_selected(String... options) {
Strings selected_options = get_selected_options();
Strings selected_options_not_found = Strings.new_instance();
for(String option: options) {
if(selected_options.does_not_have(option)) {
selected_options_not_found.add(option);
}
}
if(selected_options_not_found.is_empty()) {
action("Verified that the selected options in " + this + " are " + Strings.instance_from(options).toString());
} else {
error("Expected dropdown " + this + " to have selected options " + Strings.instance_from(options).toString() +", did not find these selected " + selected_options_not_found);
}
}