Project

General

Profile

« Previous | Next » 

Revision eea102b4

Added by Andreas Kohlbecker over 3 years ago

ref #4372 theme dependend font size in test and fixing bug in media gallery cell extraction

View differences:

src/main/java/eu/etaxonomy/dataportal/ElementUtils.java
72 72
        for(int rowId = 0; rowId < mediaRows.size(); rowId++ ){
73 73
            logger.debug("GalleryImages - gallery row " + rowId );
74 74
            List<WebElement> imageCells = mediaRows.get(rowId).findElements(By.tagName("td"));
75
            List<WebElement> captionCells = captionRows.get(rowId).findElements(By.tagName("td"));;
76
            logger.debug("GalleryImages - image cells: " + imageCells.size() + " caption cells "+ captionCells.size());
77

  
75
            List<WebElement> captionCells = null;
76
            if(rowId < captionRows.size()) {
77
                captionCells = captionRows.get(rowId).findElements(By.tagName("td"));
78
                logger.debug("GalleryImages - image cells: " + imageCells.size() + " caption cells "+ captionCells.size());
79
            }
78 80
            galleryImageRows.add(new ArrayList<GalleryImage>());
79 81

  
80 82
            // loop table cells in row

Also available in: Unified diff