def selected?(str_or_rx)
      assert_exists
      matches = options.select { |e| str_or_rx === e.text || str_or_rx === e.attribute_value(:label) }

      if matches.empty?
        raise UnknownObjectException, "Unable to locate option matching #{str_or_rx.inspect}"
      end

      matches.any? { |e| e.selected? }
    end
def selected?(str_or_rx)
      assert_exists
      matches = options.select { |e| str_or_rx === e.text || str_or_rx === e.attribute_value(:label) }

      if matches.empty?
        raise UnknownObjectException, "Unable to locate option matching #{str_or_rx.inspect}"
      end

      matches.any? { |e| e.selected? }
    end
Returns true if any of the selected options' text or label matches the given value.

 @param [String, Regexp] str_or_rx
 @raise [Watir::Exception::UnknownObjectException] if the options do not exist
 @return [Boolean]