| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
expectedAttributeValue |
| Constructor and Description |
|---|
AttributeWithValue(java.lang.String attributeName,
java.lang.String expectedAttributeValue) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
actualValue(Driver driver,
org.openqa.selenium.WebElement element)
If element didn't match the condition, returns the actual value of element.
|
boolean |
apply(Driver driver,
org.openqa.selenium.WebElement element)
Check if given element matches this condition.
|
protected java.lang.String |
getAttributeValue(org.openqa.selenium.WebElement element) |
java.lang.String |
toString() |
and, applyNull, attribute, attribute, attributeMatching, be, because, cssClass, cssValue, exactOwnText, exactText, exactTextCaseSensitive, exactValue, getName, have, href, id, match, matchesText, matchText, missingElementSatisfiesCondition, name, negate, not, or, ownText, pseudo, pseudo, selectedText, text, textCaseSensitive, type, valuepublic AttributeWithValue(java.lang.String attributeName,
java.lang.String expectedAttributeValue)
@CheckReturnValue public boolean apply(Driver driver, org.openqa.selenium.WebElement element)
Condition@Nonnull @CheckReturnValue public java.lang.String actualValue(Driver driver, org.openqa.selenium.WebElement element)
ConditionactualValue in class Conditiondriver - given driverelement - given WebElement@Nonnull @CheckReturnValue public java.lang.String toString()
protected java.lang.String getAttributeValue(org.openqa.selenium.WebElement element)