Project

General

Profile

« Previous | Next » 

Revision 97fada02

Added by Andreas Kohlbecker over 3 years ago

ref #8543 more specific xpath for footnotes

View differences:

src/main/java/eu/etaxonomy/dataportal/elements/BaseElement.java
107 107

  
108 108
    public List<BaseElement> getFootNotes(){
109 109
        return ElementUtils.baseElementsFromFootNoteListElements(
110
                getElement().findElements(By.xpath("//*[contains(@class, 'footnotes')]/span[contains(@class, 'footnote')]"))
110
                // NOTE: the training space character in 'footnote ' is important. Without it would also match the footnote-anchor!
111
                getElement().findElements(By.xpath("//*[contains(@class, 'footnotes')]/span[contains(@class, 'footnote ')]"))
111 112
                );
112 113
    }
113 114

  

Also available in: Unified diff