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, match, matchText, missingElementSatisfiesCondition, name, negate, not, or, ownText, ownTextCaseSensitive, pseudo, pseudo, selectedText, 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:ConditionCheck if given element matches this condition- Overrides:
checkin classCondition- Parameters:
driver- selenide driverelement- given WebElement- Returns:
CheckResult.Verdict.ACCEPTif element matches condition, orCheckResult.Verdict.REJECTif element doesn't match (and we should keep trying until timeout).
-
toString
-