mandatory field validation - Using selenium Api

I would like to validate if a certain field is converted to mandatory or not based on the data entered in some other field of the form , Is there a method available in selenium API for doing this test validation.

  Discussion posts and replies are publicly visible