1
|
package eu.etaxonomy.dataportal.selenium;
|
2
|
|
3
|
import org.junit.BeforeClass;
|
4
|
import org.openqa.selenium.WebDriverBackedSelenium;
|
5
|
|
6
|
import com.thoughtworks.selenium.Selenium;
|
7
|
|
8
|
import eu.etaxonomy.dataportal.DataPortalManager;
|
9
|
|
10
|
public abstract class CdmDataPortalSeleniumRCTestBase extends
|
11
|
CdmDataPortalTestBase {
|
12
|
|
13
|
protected static Selenium selenium;
|
14
|
|
15
|
@BeforeClass
|
16
|
public static void setUpDriver() {
|
17
|
CdmDataPortalTestBase.setUpDriver();
|
18
|
selenium = new WebDriverBackedSelenium(driver, DataPortalManager
|
19
|
.currentDataPortalContext().getBaseUri().toString());
|
20
|
}
|
21
|
|
22
|
@BeforeClass
|
23
|
public static void closeDriver() {
|
24
|
if (selenium != null) {
|
25
|
selenium.stop();
|
26
|
}
|
27
|
CdmDataPortalTestBase.closeDriver();
|
28
|
}
|
29
|
|
30
|
}
|