예제 #1
0
파일: WebCascadeInit.cs 프로젝트: epam/JDI
 protected By GetNewLocatorFromField(FieldInfo field)
 {
     By byLocator = null;
     var locatorGroup = AppVersion;
     if (locatorGroup == null)
         return FindByAttribute.Locator(field) ?? field.GetFindsBy();
     var jFindBy = field.GetAttribute<JFindByAttribute>();
     if (jFindBy != null && locatorGroup.Equals(jFindBy.Group))
         byLocator = jFindBy.ByLocator;
     return byLocator ?? (FindByAttribute.Locator(field) ?? field.GetFindsBy());
 }