Class CustomMatch
java.lang.Object
com.codeborne.selenide.Condition
com.codeborne.selenide.conditions.CustomMatch
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomMatch
(String description, Predicate<org.openqa.selenium.WebElement> predicate) -
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, negate, not, or, ownText, ownTextCaseSensitive, partialText, partialTextCaseSensitive, partialValue, pseudo, pseudo, selectedText, tagName, text, textCaseSensitive, type, value
-
Field Details
-
predicate
-
-
Constructor Details
-
CustomMatch
-
-
Method Details
-
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
-