Revision ef686dd8
Added by Andreas Kohlbecker almost 5 years ago
src/main/java/eu/etaxonomy/dataportal/elements/RegistrationItem.java | ||
---|---|---|
39 | 39 |
protected WebElement metadata; |
40 | 40 |
protected WebElement identifier; |
41 | 41 |
protected WebElement nameElement; |
42 |
protected List<BaseElement> nameRelationsipsElements; |
|
43 |
protected List<BaseElement> nameRelationsipFootnotes; |
|
42 | 44 |
protected WebElement typifiedNameElement; |
43 | 45 |
protected WebElement summaryElement; |
44 | 46 |
|
... | ... | |
63 | 65 |
try { |
64 | 66 |
typifiedNameElement = containerElement.findElement(By.cssSelector(".typified-name")); |
65 | 67 |
} catch (Exception e2) { |
66 |
// typifiedNameElement must exist whennameElement is not present, so we throw the Exception in this case: |
|
68 |
// typifiedNameElement must exist when nameElement is not present, so we throw the Exception in this case:
|
|
67 | 69 |
throw e2; |
68 | 70 |
} |
69 | 71 |
} |
72 |
try{ |
|
73 |
List<WebElement> std = containerElement.findElements(By.cssSelector(".name_relationships .item")); |
|
74 |
nameRelationsipsElements = new ArrayList<BaseElement>(std.size()); |
|
75 |
for(WebElement we : std){ |
|
76 |
nameRelationsipsElements.add(new BaseElement(we)); |
|
77 |
} |
|
78 |
} catch (Exception e) { /* IGNORE */} |
|
79 |
try{ |
|
80 |
List<WebElement> std = containerElement.findElements(By.cssSelector(".footnotes-name_relationships .footnote")); |
|
81 |
nameRelationsipFootnotes = new ArrayList<BaseElement>(std.size()); |
|
82 |
for(WebElement we : std){ |
|
83 |
nameRelationsipFootnotes.add(new BaseElement(we)); |
|
84 |
} |
|
85 |
} catch (Exception e) { /* IGNORE */} |
|
70 | 86 |
try{ |
71 | 87 |
List<WebElement> std = containerElement.findElements(By.cssSelector(".specimen_type_designation")); |
72 | 88 |
specimenTypeDesignations = new ArrayList<BaseElement>(std.size()); |
Also available in: Unified diff
fix #7975 fix #8196 name relationships list representation implemented