def read_attribute(attribute)
      if block_given?
        element = yield
      else
        element = send("#{attribute}?")
      end
      tag = element.tag_name
      input_field?(tag) ? element.value : element.text
    end
def read_attribute(attribute)
      if block_given?
        element = yield
      else
        element = send("#{attribute}?")
      end
      tag = element.tag_name
      input_field?(tag) ? element.value : element.text
    end
Searches the record for the specified attribute and returns
 the text content. This method is called when you access an
 attribute of a record

 @return [String] the text content of the specified attribute

 @raise [AttributeNotFound] when the attribute is not found in the record