Class And
java.lang.Object
com.codeborne.selenide.Condition
com.codeborne.selenide.conditions.And
- Direct Known Subclasses:
Editable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.codeborne.selenide.Condition
actualValue, and, apply, attribute, attribute, attributeMatching, be, because, cssClass, cssValue, exactOwnText, exactOwnTextCaseSensitive, exactText, exactTextCaseSensitive, exactValue, getName, have, href, id, innerText, match, matchText, missingElementSatisfiesCondition, name, not, or, ownText, ownTextCaseSensitive, partialText, partialTextCaseSensitive, partialValue, pseudo, pseudo, selectedText, tagName, text, textCaseSensitive, type, value
-
Constructor Details
-
And
Ctor.- Parameters:
name
- condition nameconditions
- conditions list- Throws:
IllegalArgumentException
- ifconditions
is empty
-
-
Method Details
-
negate
-
check
@Nonnull @CheckReturnValue public CheckResult check(Driver driver, org.openqa.selenium.WebElement element) Description copied from class:Condition
Check if given element matches this condition- Overrides:
check
in classCondition
- Parameters:
driver
- selenide driverelement
- given WebElement- Returns:
CheckResult.Verdict.ACCEPT
if element matches condition, orCheckResult.Verdict.REJECT
if element doesn't match (and we should keep trying until timeout).
-
toString
-