def write_attribute(attribute, value)
      element = send("#{attribute}?")
      tag = element.tag_name
      case tag
      when 'textarea', 'input' then element.set(value)
      when 'select'then element.select(value)
      else raise NotInputField
      end
      element
    end
def write_attribute(attribute, value)
      element = send("#{attribute}?")
      tag = element.tag_name
      case tag
      when 'textarea', 'input' then element.set(value)
      when 'select'then element.select(value)
      else raise NotInputField
      end
      element
    end
Searches the record for the specified attribute and sets the value of the attribute
 This method is called when you set an attribute of a record

 @return [Capybara::Result] the text content of the specified attribute

 @raise [AttributeNotFound] when the attribute is not found in the record
 @raise [NotInputField] when the attribute is not a `TEXTAREA` or `INPUT` tag