Project

General

Profile

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

    
6
import org.openqa.selenium.WebDriver;
7

    
8
import com.google.common.base.Function;
9

    
10
/**
11
 * @author andreas
12
 *
13
 */
14
public class UrlLoaded implements Function<WebDriver, Boolean> {
15

    
16
	String url;
17

    
18
	public UrlLoaded(String url) {
19
		this.url = url;
20
	}
21

    
22
	/* (non-Javadoc)
23
	 * @see com.google.common.base.Function#apply(java.lang.Object)
24
	 */
25
	public Boolean apply(WebDriver driver) {
26
		return driver.getCurrentUrl().equals(url);
27
	}
28

    
29
}
(4-4/6)