def select_value(value)
      assert_exists
      selected = @object.getOptions.map { |e| e.click if Util.matches?(e.getValueAttribute, value) }.compact.first

      unless selected
        raise NoValueFoundException, "unknown option with value #{value.inspect} for select_list #{@conditions.inspect}"
      end

      selected.asText
    end
def select_value(value)
      assert_exists
      selected = @object.getOptions.map { |e| e.click if Util.matches?(e.getValueAttribute, value) }.compact.first

      unless selected
        raise NoValueFoundException, "unknown option with value #{value.inspect} for select_list #{@conditions.inspect}"
      end

      selected.asText
    end
Selects the option(s) whose value attribute matches the given string.
 @param [String, Regexp] value A value.
 @raise [Celerity::Exception::NoValueFoundException] if the value does not exist.
 @return [String] The option selected. If multiple options match, returns the first match