List<?> pageFragments = createPageFragmentList(getListType(field), searchContext, rootBy);
setValue(field, target, pageFragments);
}
protected final void setupPageFragment(SearchContext searchContext, Object target, Field field) {
By rootBy = FindByUtilities.getCorrectBy(field);
if (rootBy == null) {
throw new PageFragmentInitializationException("Your declaration of Page Fragment in test "
+ field.getDeclaringClass().getName() + " is annotated with @FindBy without any "
+ "parameters, in other words without reference to root of the particular Page Fragment on the page!"
+ NEW_LINE);