Revision adfb51b3
Added by Andreas Kohlbecker over 11 years ago
7.x/modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/selenium/JUnitWebDriverWait.java | ||
---|---|---|
13 | 13 |
public class JUnitWebDriverWait extends WebDriverWait { |
14 | 14 |
|
15 | 15 |
|
16 |
/**
|
|
17 |
* @param driver
|
|
18 |
* @param timeOutInSeconds
|
|
19 |
*/
|
|
20 |
public JUnitWebDriverWait(WebDriver driver, long timeOutInSeconds) {
|
|
21 |
super(driver, timeOutInSeconds);
|
|
22 |
}
|
|
16 |
/**
|
|
17 |
* @param driver
|
|
18 |
* @param timeOutInSeconds
|
|
19 |
*/
|
|
20 |
public JUnitWebDriverWait(WebDriver driver, long timeOutInSeconds) {
|
|
21 |
super(driver, timeOutInSeconds);
|
|
22 |
}
|
|
23 | 23 |
|
24 |
@Override
|
|
25 |
protected RuntimeException timeoutException(String message, RuntimeException lastException) {
|
|
26 |
throw new AssertionError(message);
|
|
27 |
}
|
|
24 |
@Override
|
|
25 |
protected RuntimeException timeoutException(String message, Throwable lastException) {
|
|
26 |
throw new AssertionError(message);
|
|
27 |
}
|
|
28 | 28 |
|
29 | 29 |
} |
Also available in: Unified diff
fixing #2987 (selenium test Illicium@floramalesiana(eu.etaxonomy.dataportal.selenium.tests.flMalesiana.FloraMalesiana_OriginalSourceTest) fails due to timeouts) and adapting code to selenium 2.26.0 in pom