Forum Discussion

Lee_M's avatar
Lee_M
Community Hero
5 years ago
Solved

html5 form validation

Hi Guys,   I have a test that uses a data-driven loop across a simple html5 input   html5 has some simple validation that I would like to break out of my loop iteration (go to next case) is the v...
  • hkim5's avatar
    5 years ago

    it seems that the pop up itself cannot be verified in a typical UI-element wise manner.

    However, that popup (or rather the text value of the popup, seems to be captured in a property of the textfield itself called "validationMessage" where it reads "Please fill out this field." when the textfield is empty

    hkim5_0-1614976387927.png

     

    and instead returns an empty string when there is some input in the textfield itself

    hkim5_1-1614976442750.png

    you could look to verify that property via a checkpoint, to make sure that it either reads the intended value, or holds an empty string value instead.