Class PageFragmentEnricher
java.lang.Object
org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher
org.jboss.arquillian.graphene.enricher.PageFragmentEnricher
- All Implemented Interfaces:
SearchContextTestEnricher
Enricher injecting page fragments (
FindBy annotation is used) to the fields of the given object.- Author:
- Juraj Huska, Jan Papousek
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher
NEW_LINE -
Constructor Summary
ConstructorsConstructorDescriptionPageFragmentEnricher(org.jboss.arquillian.core.api.Instance<GrapheneConfiguration> configuration) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcreatePageFragment(Class<T> clazz, org.openqa.selenium.WebElement root) protected final <T> List<T>createPageFragmentList(Class<T> clazz, org.openqa.selenium.SearchContext searchContext, org.openqa.selenium.By rootBy) voidintprotected final booleanisPageFragmentClass(Class<?> clazz, Object target) Object[]protected final voidsetupPageFragment(org.openqa.selenium.SearchContext searchContext, Object target, Field field) protected final voidsetupPageFragmentList(org.openqa.selenium.SearchContext searchContext, Object target, Field field) Methods inherited from class org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher
enrichRecursively, getActualType, getListType, getSortedSearchContextEnrichers, instantiate, setValue
-
Constructor Details
-
PageFragmentEnricher
public PageFragmentEnricher() -
PageFragmentEnricher
public PageFragmentEnricher(org.jboss.arquillian.core.api.Instance<GrapheneConfiguration> configuration)
-
-
Method Details
-
enrich
-
resolve
-
isPageFragmentClass
-
createPageFragmentList
-
createPageFragment
-
setupPageFragmentList
protected final void setupPageFragmentList(org.openqa.selenium.SearchContext searchContext, Object target, Field field) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
setupPageFragment
-
getPrecedence
public int getPrecedence()
-