Project

General

Profile

Download (1.31 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
 * Copyright (C) 2009 EDIT
4
 * European Distributed Institute of Taxonomy 
5
 * http://www.e-taxonomy.eu
6
 * 
7
 * The contents of this file are subject to the Mozilla Public License Version 1.1
8
 * See LICENSE.TXT at the top of this package for the full license terms.
9
 */
10
package eu.etaxonomy.dataportal.selenium;
11

    
12
import org.junit.BeforeClass;
13
import org.openqa.selenium.WebDriverBackedSelenium;
14

    
15
import com.thoughtworks.selenium.Selenium;
16

    
17
import eu.etaxonomy.dataportal.DataPortalManager;
18

    
19
/**
20
 * http://seleniumhq.org/docs/03_webdriver.html#emulating-selenium-rc
21
 * 
22
 * @author a.kohlbecker
23
 * @deprecated SeleniumRCTests should only be used if you are really desperatly
24
 *             shor in time and you need to use the Selenium 1 IDE in order to
25
 *             quickly create tests.
26
 */
27
@Deprecated
28
public abstract class CdmDataPortalSeleniumRCTestBase extends CdmDataPortalTestBase {
29

    
30
	protected static Selenium selenium;
31

    
32
	@BeforeClass
33
	public static void setUpDriver() {
34
		CdmDataPortalTestBase.setUpDriver();
35
		selenium = new WebDriverBackedSelenium(driver, DataPortalManager.currentDataPortalContext().getBaseUri().toString());
36
	}
37

    
38
	@BeforeClass
39
	public static void closeDriver() {
40
		if (selenium != null) {
41
			selenium.stop();
42
		}
43
		CdmDataPortalTestBase.closeDriver();
44
	}
45

    
46
}
(1-1/3)