Aslak Knutsen created ARQGRA-195:
------------------------------------
Summary: Page Fragment Enricher fail with no context to where
Key: ARQGRA-195
URL:
https://issues.jboss.org/browse/ARQGRA-195
Project: Arquillian Graphene
Issue Type: Enhancement
Components: core
Affects Versions: 2.0.0.Alpha2
Reporter: Aslak Knutsen
{code}
@FindBy(xpath = "//a[@id='name']")
private String name;
{code}
casue:
{code}
java.lang.IllegalStateException: cannot set referenced element!
at
org.jboss.arquillian.graphene.enricher.Factory.initializePageFragment(Factory.java:106)
at
org.jboss.arquillian.graphene.enricher.PageFragmentsEnricher.initPageFragmentsFields(PageFragmentsEnricher.java:163)
at
org.jboss.arquillian.graphene.enricher.PageFragmentsEnricher.initFieldsAnnotatedByFindBy(PageFragmentsEnricher.java:78)
at
org.jboss.arquillian.graphene.enricher.PageFragmentsEnricher.enrich(PageFragmentsEnricher.java:57)
at
org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
....
{code}
The exception should contain which Field was attempted injected and of what type
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira