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 org.openqa.selenium.WebElement;
|
13
|
|
14
|
/**
|
15
|
* @author andreas
|
16
|
* @date Aug 29, 2011
|
17
|
*
|
18
|
*/
|
19
|
public class GalleryImage extends ImgElement {
|
20
|
|
21
|
|
22
|
private WebElement captionElement;
|
23
|
|
24
|
/**
|
25
|
* @param img
|
26
|
*/
|
27
|
public GalleryImage(WebElement img, WebElement caption) {
|
28
|
super(img);
|
29
|
this.captionElement = caption;
|
30
|
}
|
31
|
|
32
|
public String getCaptionText() {
|
33
|
if(captionElement == null){
|
34
|
return null;
|
35
|
}
|
36
|
return captionElement.getText();
|
37
|
}
|
38
|
|
39
|
}
|