public void SetPersonalInfoFieldRequired(FormData.PersonalInfoField field, bool checkRequiredOption)
 {
     switch (field)
     {
         case FormData.PersonalInfoField.SocialSecurityNumber:
             CheckBox SSNVisible = new CheckBox("ctl00_cph_chkCollectionFieldsrSSNID", LocateBy.Id);
             SSNVisible.Set(checkRequiredOption);
             break;
         case FormData.PersonalInfoField.ContactInfo:
             CheckBox ContactInfoVisible = new CheckBox(string.Format("//*[contains(text(),'{0}')]/../td[3]/input", StringEnum.GetStringValue(field)), LocateBy.XPath);
             ContactInfoVisible.Set(checkRequiredOption);
             break;
         default:
             CheckBox StandardFieldVisible = new CheckBox(string.Format("//*[text()='{0}']/../../../..//td[3]/input", CustomStringAttribute.GetCustomString(field)), LocateBy.XPath);
             StandardFieldVisible.Set(checkRequiredOption);
             break;
     }
 }
 public void SetLodgingStandardFieldVisible(FormData.LodgingStandardFields field, bool visible)
 {
     CheckBox LodgingStandardFieldVisible = new CheckBox(string.Format("ctl00_cph_chk{0}V", field.ToString()), LocateBy.Id);
     LodgingStandardFieldVisible.Set(visible);
 }
 public void SetLodgingStandardFieldRequired(FormData.LodgingStandardFields field, bool requied)
 {
     CheckBox LodgingStandardFieldRequired = new CheckBox(string.Format("ctl00_cph_chk{0}R", field.ToString()), LocateBy.Id);
     LodgingStandardFieldRequired.Set(requied);
 }