Project

General

Profile

Download (671 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 *
3
 */
4
package eu.etaxonomy.dataportal.selenium;
5

    
6
import org.openqa.selenium.By;
7
import org.openqa.selenium.WebDriver;
8
import org.openqa.selenium.WebElement;
9

    
10
import com.google.common.base.Function;
11

    
12
/**
13
 * @author andreas
14
 *
15
 */
16
public class ChildElementVisible implements Function<WebDriver, Boolean> {
17

    
18
	By findCondition;
19
	WebElement parent;
20

    
21
	public ChildElementVisible(WebElement parent, By by) {
22
		this.findCondition = by;
23
		this.parent = parent;
24
	}
25

    
26
	/* (non-Javadoc)
27
	 * @see com.google.common.base.Function#apply(java.lang.Object)
28
	 */
29
	public Boolean apply(WebDriver driver) {
30
		parent.findElement(this.findCondition);
31
		return Boolean.valueOf(true);
32
	}
33

    
34
}
(2-2/7)