//change data type validation void changeDataType(FieldValidationHelper helper, string dataType, ExecutionLog log) { goToFP(helper, log); log.Log("FieldValidationFrame", "clear all checkbox"); clearAllChoice(helper, log); log.Log("FieldValidationFrame", "check cooresponding datatype"); helper.ClickElement("DataTypeVal"); helper.Select("DataTypeBox", dataType); }
//Go to Field properties and choose test field Company Legal Name void goToFP(FieldValidationHelper helper, ExecutionLog log) { log.Log("FieldValidationFrame", "Go to field properity"); VisitOffice("fields"); helper.WaitForWorkAround(1000); log.Log("FieldValidationFrame", "Select module"); helper.Select("Module", "20"); helper.WaitForWorkAround(2000); log.Log("FieldValidationFrame", "Select Processor"); helper.Select("Processor", "3291"); helper.WaitForWorkAround(2000); log.Log("FieldValidationFrame", "Select Tab"); helper.Select("Tab", "14864"); helper.WaitForWorkAround(5000); helper.ClickElement("Search"); log.Log("FieldValidationFrame", "Select company legal name"); helper.WaitForWorkAround(1000); helper.ClickElement("ClientLegalName"); }
//change data format validation void changeDataFormat(FieldValidationHelper helper, string dataFormat, ExecutionLog log) { goToFP(helper, log); log.Log("FieldValidationFrame", "clear all checkbox"); clearAllChoice(helper, log); helper.WaitForWorkAround(5000); log.Log("FieldValidationFrame", "check cooresponding data format"); helper.ClickElement("FieldFormat"); helper.Select("FieldFormatBox", dataFormat); helper.ClickElement("SaveVali"); }