Project

General

Profile

Download (1.4 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2011 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.elements;
11

    
12
import java.util.ArrayList;
13
import java.util.List;
14

    
15
import javax.swing.Box.Filler;
16

    
17
import org.openqa.selenium.By;
18
import org.openqa.selenium.WebElement;
19

    
20
import eu.etaxonomy.dataportal.pages.GenericPortalPage;
21
import eu.etaxonomy.dataportal.pages.PortalPage;
22
import eu.etaxonomy.dataportal.pages.TaxonProfilePage;
23
import eu.etaxonomy.dataportal.pages.TaxonSearchResultPage;
24
import eu.etaxonomy.dataportal.selenium.AllTrue;
25
import eu.etaxonomy.dataportal.selenium.JUnitWebDriverWait;
26
import eu.etaxonomy.dataportal.selenium.PageTitleValidated;
27
import eu.etaxonomy.dataportal.selenium.VisibilityOfElementLocated;
28

    
29
/**
30
 * @author andreas
31
 * @date Aug 29, 2011
32
 *
33
 */
34
public class TaxonListElement extends BaseElement {
35

    
36
	private TaxonType type;
37

    
38
	private String fullTaxonName;
39

    
40

    
41
	/**
42
	 * @param element
43
	 */
44
	public TaxonListElement(WebElement element) {
45
		super(element);
46
		type = TaxonType.valueOf( element.getAttribute("class") );
47
		fullTaxonName = element.findElement(By.tagName("span")).getText();
48
	}
49

    
50

    
51
	public TaxonType getType() {
52
		return type;
53
	}
54

    
55

    
56
	public String getFullTaxonName() {
57
		return fullTaxonName;
58
	}
59

    
60

    
61

    
62

    
63
}
(10-10/11)