how to check multiple required fileds.
this must be a scary idea but i need it.
I a have a window where it has lot of required fields. I nee to check whether their label color is maroon or not. Required fields may increase in later stages. So in order to make it easy to update, I am following this;
For i = 0 to UBound(rlabel)
If SwfWindow("main").SwfWindow("new").Swflabel(rlabel (i)).Object.ForeColor <> "Maroon" Then
Reporter.reportevent micFail, "aaa","aaaaaa"
Is this a correct apporach just to check font color. I wonder what property do i need to check for required text field associated with these lables? If procedd next without entering data , it will throw a popup with invalid data message, we can check this way but is there any other way. Coz there are lots of required fields.
Re: how to check multiple required fileds.
You should check with your developers to see if any property of the control makes it mandatory or is it just done in the code. If it is in the code only then you need to keep each field blank once and check for the error message.