4 Replies Latest reply on Apr 14, 2010 2:41 AM by Mette Hummel

    Selenium tests and click in extendedDataTable

    Mette Hummel Newbie

      Hi

       

      I'm trying to set up some Selenium tests towards an applikation where we use RichFaces 3.3.3 CR1. I'm running into problems when I try to click on one of the rows in an extended data table. The Selenium target for clicking on the first row looks like this:

       

      hovedForm:gldKodeTabell:no.skd.sl.domain.GldKodeBeskrivelse@f99f26:test

       

      If I just rerun the test it works fine. The problem is that when I try to run the test later after I have restarted the application server I get this message:

       

      [error] Element hovedForm:gldKodeTabell:no.skd.sl.domain.GldKodeBeskrivelse@f99f26:test not found

       

      and it turns out that the line have this id: hovedForm:gldKodeTabell:no.skd.sl.domain.GldKodeBeskrivelse@506d2d:test

       

      What do I need to do in order to be get reproducable ids for the rows in an extendedDataTabel?

       

       

                      <rich:extendedDataTable value="#{ltoKodeBean.gldDataModel}"

                              var="linje" id="gldKodeTabell" height="350px"

                              sortMode="single"

                              selectionMode="multi"

                              selection="#{ltoKodeBean.selection}"

                              selectedClass="valgtRadStyle"

                              noDataLabel="#{tekster.ingenResultater}"

                              enableContextMenu="false">