def matches_attributes?(element) # :api: public
      @attributes.all? do |key, value|
        test_attribute(element.attribute(key.to_s), value)
      end
    end
def matches_attributes?(element) # :api: public
      @attributes.all? do |key, value|
        test_attribute(element.attribute(key.to_s), value)
      end
    end
Answers whether or not +element+ matches the attributes in the attributes hash given to
 {#with_attribute}.

 @param [Nokogiri::XML::Node]  element   The element to be tested.

 @return [Boolean]