Project

General

Profile

« Previous | Next » 

Revision 1b9c21eb

Added by Andreas Kohlbecker over 12 years ago

fixing test issues

View differences:

modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/pages/PortalPage.java
15 15
import org.openqa.selenium.support.FindBy;
16 16
import org.openqa.selenium.support.FindBys;
17 17
import org.openqa.selenium.support.PageFactory;
18
import org.openqa.selenium.support.ui.WebDriverWait;
18 19

  
19 20
import eu.etaxonomy.dataportal.DataPortalContext;
20 21
import eu.etaxonomy.dataportal.elements.LinkElement;
......
22 23

  
23 24
public abstract class  PortalPage {
24 25

  
26
	/**
27
	 *
28
	 */
29
	private static final int WAIT_SECONDS = 25;
30

  
25 31
	public static final Logger logger = Logger.getLogger(PortalPage.class);
26 32

  
27 33
	protected final static String DRUPAL_PAGE_QUERY_BASE = "?q=";
......
32 38

  
33 39
	protected final JUnitWebDriverWait wait;
34 40

  
41
	public WebDriverWait getWait() {
42
		return wait;
43
	}
44

  
35 45

  
36 46
	/**
37 47
	 * Implementations of this method will supply the relative
......
92 102

  
93 103
		this.context = context;
94 104

  
95
		this.wait = new JUnitWebDriverWait(driver, 25);
105
		this.wait = new JUnitWebDriverWait(driver, WAIT_SECONDS);
96 106

  
97 107
		this.drupalPagePath = getDrupalPageBase() + (pagePathSuffix != null ? "/" + pagePathSuffix: "");
98 108

  

Also available in: Unified diff