@ParametersAreNonnullByDefault public abstract class TextCondition extends Condition
Modifier | Constructor and Description |
---|---|
protected |
TextCondition(java.lang.String name,
java.lang.String expectedText) |
Modifier and Type | Method and Description |
---|---|
CheckResult |
check(Driver driver,
org.openqa.selenium.WebElement element)
Check if given element matches this condition
|
protected java.lang.String |
getText(Driver driver,
org.openqa.selenium.WebElement element) |
protected abstract boolean |
match(java.lang.String actualText,
java.lang.String expectedText) |
java.lang.String |
toString() |
actualValue, and, apply, attribute, attribute, attributeMatching, be, because, cssClass, cssValue, exactOwnText, exactText, exactTextCaseSensitive, exactValue, getName, have, href, id, match, matchText, missingElementSatisfiesCondition, name, negate, not, or, ownText, pseudo, pseudo, selectedText, text, textCaseSensitive, type, value
protected TextCondition(java.lang.String name, java.lang.String expectedText)
protected abstract boolean match(java.lang.String actualText, java.lang.String expectedText)
protected java.lang.String getText(Driver driver, org.openqa.selenium.WebElement element)
@Nonnull public CheckResult check(Driver driver, org.openqa.selenium.WebElement element)
Condition