file.pagefactory.FileProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of findbyfilewebelement Show documentation
Show all versions of findbyfilewebelement Show documentation
Storing Element Locators in excel, json and properties files
The newest version!
package file.pagefactory;
import java.lang.reflect.Field;
import org.openqa.selenium.support.pagefactory.Annotations;
public interface FileProcessor {
void dataSourceDetails(Field field);
default void checkAndCallParseDataSource(Field field) {
System.out.println(Thread.currentThread().getId() + "---" + "Final Check data In here "+field.getName());
// If data is got from previous parsing then return.
if (FieldByCache.doesByExistForField(field))
return;
parseDataSource();
}
void parseDataSource();
Annotations getAnnotation(Field field);
default void populateData(Field field) {
dataSourceDetails(field);
checkAndCallParseDataSource(field);
}
}