1
|
/**
|
2
|
*
|
3
|
*/
|
4
|
package eu.etaxonomy.dataportal.selenium;
|
5
|
|
6
|
import org.openqa.selenium.WebDriver;
|
7
|
import org.openqa.selenium.support.ui.WebDriverWait;
|
8
|
|
9
|
/**
|
10
|
* @author andreas
|
11
|
*
|
12
|
*/
|
13
|
public class JUnitWebDriverWait extends WebDriverWait {
|
14
|
|
15
|
|
16
|
public JUnitWebDriverWait(WebDriver driver, long timeOutInSeconds) {
|
17
|
super(driver, timeOutInSeconds);
|
18
|
}
|
19
|
|
20
|
@Override
|
21
|
protected RuntimeException timeoutException(String message, Throwable lastException) {
|
22
|
throw new AssertionError(message);
|
23
|
}
|
24
|
|
25
|
}
|