lib/testcentricity_web/web_elements/textfield.rb
# Return validationMessage property of a textfield, which is the message the browser displays to the user when a textfield's
# validity is checked and fails. Note that each web browser provides a default localized message for this property, and message
# strings can vary between different browsers (Chrome/Edge vs Firefox vs Safari).
#
# @return [String]
# @example
#   message = username_field.validation_message
#
Return validationMessage property of a textfield, which is the message the browser displays to the user when a textfield's
validity is checked and fails. Note that each web browser provides a default localized message for this property, and message
strings can vary between different browsers (Chrome/Edge vs Firefox vs Safari).
Return validationMessage property of a textfield which is the message the browser displays to the user when a textfield ' s validity is checked and fails . Note that each web browser provides a default localized message for this property and message strings can vary between different browsers ( Chrome / Edge vs Firefox vs Safari ) .
def validation_message
      obj, = find_element
      object_not_found_exception(obj, nil)
      obj.native.attribute('validationMessage')
    end
def validation_message obj , = find_element object_not_found_exception ( obj , nil ) obj . native . attribute ( 'validationMessage' ) end
Return validationMessage property of a textfield, which is the message the browser displays to the user when a textfield's
validity is checked and fails.
Return validationMessage property of a textfield which is the message the browser displays to the user when a textfield ' s validity is checked and fails .
None
String
example
message = username_field.validation_message
message = username_field . validation_message