Revision 1ef7687d
adapting test to new html structure
7.x/modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/pages/TaxonProfilePage.java | ||
---|---|---|
22 | 22 |
import org.junit.Assert; |
23 | 23 |
import org.openqa.selenium.By; |
24 | 24 |
import org.openqa.selenium.NoSuchElementException; |
25 |
import org.openqa.selenium.WebElement; |
|
26 | 25 |
import org.openqa.selenium.WebDriver; |
26 |
import org.openqa.selenium.WebElement; |
|
27 | 27 |
import org.openqa.selenium.support.CacheLookup; |
28 | 28 |
import org.openqa.selenium.support.FindBy; |
29 | 29 |
|
... | ... | |
113 | 113 |
|
114 | 114 |
public String getTableOfContentHeader() { |
115 | 115 |
if(tableOfContent != null) { |
116 |
WebElement header = tableOfContent.findElement(By.tagName("h2"));
|
|
116 |
WebElement header = tableOfContent.findElement(By.tagName("h3"));
|
|
117 | 117 |
return header.getText(); |
118 | 118 |
} |
119 | 119 |
return null; |
Also available in: Unified diff