Package com.codeborne.selenide
Class WebElementCondition
java.lang.Object
com.codeborne.selenide.WebElementCondition
- Direct Known Subclasses:
And,Attribute,AttributeWithValue,Checked,CssClass,CssValue,CustomMatch,Disabled,Enabled,EnabledAndVisible,Exist,ExplainedCondition,Focused,Hidden,IsImageLoaded,MatchAttributeWithValue,NamedCondition,Not,Or,PartialValue,PseudoElementPropertyWithValue,Selected,TagName,TemporalCondition,TemporalFormatCondition,TextCondition,Value,Visible
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebElementCondition(String name) protectedWebElementCondition(String name, boolean missingElementSatisfiesCondition) -
Method Summary
Modifier and TypeMethodDescriptionShould be used for explaining the reason of conditionabstract CheckResultCheck if given element matches this conditiongetName()booleannegate()toString()
-
Field Details
-
name
-
missingElementSatisfiesCondition
protected final boolean missingElementSatisfiesCondition
-
-
Constructor Details
-
WebElementCondition
-
WebElementCondition
-
-
Method Details
-
check
@Nonnull @CheckReturnValue public abstract CheckResult check(Driver driver, org.openqa.selenium.WebElement element) Check if given element matches this condition- 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).- Since:
- 6.0.0
-
negate
-
because
Should be used for explaining the reason of condition -
toString
-
getName
-
missingElementSatisfiesCondition
@CheckReturnValue public boolean missingElementSatisfiesCondition()
-