Browser-native validation messages are not part of the DOM and cannot be captured or dismissed using Selenium WebDriver.
validationMessage is a read-only JavaScript property that reflects the validation state of the element.
To fully validate behaviour :
Use element.validity.valid to confirm the field's state.
Use element.validationMessage to get the human-readable error message.