This project is read-only.

TextBox field states

Jun 1, 2010 at 12:44 PM
Edited Jun 1, 2010 at 12:45 PM


I am trying verify various states of text box like

  • Is the field mandatory
  • Has any error message displayed below the text box(if data is not entered)
  • Is the field highlighted

I searched in discussions forum and tried to check for methods which can solve my requirement but couldnt find any.

How can I verify these for text boxes?

Thanks in advance


Jun 3, 2010 at 10:00 AM

How do you want to check whether the field is mandatory, highlighted or has error message. Are there indicators on UI around this control. Can you not check for presence of these control?