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()); }