Project

General

Profile

Download (1.17 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2012 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 org.openqa.selenium.By;
13
import org.openqa.selenium.WebElement;
14

    
15
/**
16
 * @author andreas
17
 * @date May 21, 2012
18
 *
19
 */
20
public class ClassificationTreeElement extends BaseElement {
21

    
22

    
23
    private String taxonName;
24

    
25
    private String linkUrl;
26

    
27

    
28
    private boolean isFocused;
29

    
30
    public String getTaxonName() {
31
        return taxonName;
32
    }
33

    
34
    public String getLinkUrl() {
35
        return linkUrl;
36
    }
37

    
38
    public boolean isFocused() {
39
        return isFocused;
40
    }
41

    
42
    public ClassificationTreeElement(WebElement element) {
43
        super(element);
44
        taxonName = element.getText();
45
        for(String classAttribute : getClassAttributes()){
46
            if(classAttribute.equals("focused")){
47
                isFocused = true;
48
                break;
49
            }
50
        }
51
        linkUrl = element.findElement(By.tagName("a")).getAttribute("href");
52
    }
53

    
54

    
55

    
56

    
57

    
58

    
59
}
(3-3/13)