Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.3.Final
    • Fix Version/s: 2.0-Tracking
    • Component/s: core
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      follow the code in description

      Show
      follow the code in description

      Description

      I have an abstract PageObject like these:

      public abstract class AbstractBenutzerdatenPageWithEdit<EDITDLG extends AbstractEditDialogFragment> extends
              AbstractBenutzerdatenPage {
      
          @FindBy(id = "browser:editDialog:dlg_container")
          private EDITDLG editDialog;
      
          public EDITDLG getEditDialog() {
              return editDialog;
          }
      
      }
      

      AbstractEditDialogFragment has three concrete implementations and there are three implementations of AbstractBenutzerdatenPageWithEdit like the following:

      @Location("pages/benutzerdaten/fehlzeit/frist.xhtml")
      public class FristenPage extends AbstractBenutzerdatenPageWithEdit<FristenEditDialogFragment> {
      .....
      }
      

      at which FristenEditDialogFragment is one concrete implementation of AbstractEditDialogFragment

      public class FristenEditDialogFragment extends AbstractEditDialogFragment {
      ...
      }
      

      The test looking like these:

      @RunWith(Arquillian.class)
      @RunAsClient
      public class FristenTest extends TestDeployments {
      
          @ArquillianResource
          private URL contextPath;
          @Drone
          private WebDriver driver;
          @Page
          private LoginPage loginPage;
          @Page
          private HomePage homePage;
          @Page
          private BenutzerdatenHomePage benutzerdatenHomePage;
          @Page
          private FristenPage fristenPage;
      
          @Test
          public void PageAccessTest(@InitialPage LoginPage loginP) {
              loginP.loginWithCredentials("admin", "gip123");
              homePage.getNavigationBar().navigateToUserData();
              benutzerdatenHomePage.getMenu().openFristen();
              assertThat(fristenPage.getBreadCrumbText()).isEqualTo("┬╗ Benutzerdaten ┬╗Fehlzeiten ┬╗ Fristen");
          }
      

      And if i run this test, i get a PageObjectInitializationException

      org.jboss.arquillian.graphene.enricher.exception.PageObjectInitializationException: Can not instantiate Page Object 
      class de.gipmbh.absenz.web.pageModel.benutzerdaten.FristenPage
       declared in: 
      de.gipmbh.absenz.web.uitests.benutzerdaten.FristenTest
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hoeppnerrobert Robert Hoeppner
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: