Uploaded image for project: 'Arquillian Graphene'
  1. Arquillian Graphene
  2. ARQGRA-195

Page Fragment Enricher fail with no context to where

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 2.0.0.Alpha2
    • Fix Version/s: 2.0.0.Alpha3
    • Component/s: core
    • Labels:
      None

      Description

      @FindBy(xpath = "//a[@id='name']")
      private String name;
      

      casue:

      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)
      ....
      

      The exception should contain which Field was attempted injected and of what type

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jhuska Juraj Húska
                Reporter:
                aslak Aslak Knutsen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: