Project

General

Profile

Download (751 Bytes) 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

    
11
package eu.etaxonomy.dataportal.elements;
12

    
13
import org.openqa.selenium.WebElement;
14

    
15
/**
16
 * @author andreas
17
 * @date Jul 1, 2011
18
 *
19
 */
20
public class LinkElement extends BaseElement {
21

    
22
	private String href = null;
23
	public String getUrl() {
24
		return href;
25
	}
26

    
27
	public void setHref(String href) {
28
		this.href = href;
29
	}
30

    
31

    
32
	public LinkElement(WebElement a) {
33

    
34
		super(a);
35

    
36
		// read src url
37
		if (a.getAttribute("href") != null) {
38
				setHref(a.getAttribute("href"));
39
		}
40

    
41
	}
42

    
43
}
(6-6/6)