public abstract class UiCondition extends Object implements com.google.common.base.Predicate<org.openqa.selenium.WebElement>
Constructor and Description |
---|
UiCondition(String name) |
UiCondition(String name,
boolean absentElementMatchesCondition) |
Modifier and Type | Method and Description |
---|---|
String |
actualValue(org.openqa.selenium.WebElement element)
If element didn't match the condition, returns the actual value of element.
|
abstract boolean |
apply(org.openqa.selenium.WebElement element)
Check if given element matches this condition.
|
boolean |
applyNull() |
void |
fail(org.openqa.selenium.WebElement element) |
String |
getName() |
String |
toString() |
public UiCondition(String name)
public UiCondition(String name, boolean absentElementMatchesCondition)
public abstract boolean apply(org.openqa.selenium.WebElement element)
apply
in interface com.google.common.base.Predicate<org.openqa.selenium.WebElement>
element
- given WebElementpublic final boolean applyNull()
public void fail(org.openqa.selenium.WebElement element)
public String actualValue(org.openqa.selenium.WebElement element)
element
- given WebElementpublic String getName()
Copyright 2016, WorkFusion, Inc.