public void should_not_have_any_of_these(String... expected_options) { Strings option_strings = get_all_options(); Strings strings_present = option_strings.has_any_of_these(expected_options); if (strings_present.is_empty()) { action( "Verified dropdown " + this + " has none of these options " + Strings.instance_from(expected_options).toString()); } else { error( "Expected dropdown " + this + " to have none of these options " + Strings.instance_from(expected_options).toString() + " found these " + strings_present); } }
public Strings get_selected_options() { return Strings.instance_from(get_selected_option()); }