Project

General

Profile

« Previous | Next » 

Revision bafcf277

Added by Andreas Kohlbecker over 5 years ago

adapting xpaths in test framework to modified rendering of footnotes, related to ref #7658

View differences:

src/main/java/eu/etaxonomy/dataportal/pages/TaxonSynonymyPage.java
103 103
     */
104 104
    public List<LinkElement> getAcceptedNameFootNoteKeys() {
105 105
        List<WebElement> fnkListElements = synonymy.findElements(
106
                By.xpath("./div[contains(@class,'accepted-name')]/span/span[contains(@class, 'footnote-key')]/a")
106
                By.xpath("./div[contains(@class,'accepted-name')]/span[contains(@class, 'footnote-key')]/a")
107 107
        );
108 108
        return ElementUtils.linkElementsFromFootNoteKeyListElements(fnkListElements);
109 109
    }
......
221 221
     * 				the 1-based index of the heterotypical group
222 222
     */
223 223
    public List<LinkElement> getHeterotypicalGroupFootNoteKeys(Integer heterotypicalGroupIndex) {
224
        // 1. try find the misapplied name footnote keys
224 225
        List<WebElement> fnkListElements = synonymy.findElements(
225 226
                By.xpath("./div[contains(@class,'heterotypic-synonymy-group')][" + heterotypicalGroupIndex + "]/ul[@class = 'heterotypicSynonymyGroup']/li/span/span/span/span[contains(@class, 'footnote-key')]/a")
226 227
         );
228
        // 2. try find the others
229
        if(fnkListElements.size() == 0){
230
            fnkListElements = synonymy.findElements(
231
                    By.xpath("./div[contains(@class,'heterotypic-synonymy-group')][" + heterotypicalGroupIndex + "]/ul[@class = 'heterotypicSynonymyGroup']/li/span/span[contains(@class, 'footnote-key')]/a")
232
             );
233
        }
227 234
        return ElementUtils.linkElementsFromFootNoteKeyListElements(fnkListElements);
228 235
    }
229 236

  

Also available in: Unified diff