Package io.jmix.masquerade.condition
Class SpecificCondition
java.lang.Object
com.codeborne.selenide.WebElementCondition
io.jmix.masquerade.condition.SpecificCondition
- Direct Known Subclasses:
CheckedItems
,CheckedItemsContains
,CheckedItemsCount
,DateValue
,DialogHeader
,Label
,NotificationMessage
,NotificationMessageContains
,NotificationPosition
,NotificationTheme
,NotificationTitle
,NotificationTitleContains
,SelectedItems
,SelectedItemsContains
,SelectedItemsCount
,TimeValue
,Value
,ValueContains
,VisibleItems
,VisibleItemsContains
,VisibleItemsCount
public abstract class SpecificCondition
extends com.codeborne.selenide.WebElementCondition
Abstract class for specific conditions.
Specific conditions can only be checked by SpecificConditionHandler
.
Each SpecificConditionHandler
must implement its own check for each specific condition if it supports it.
-
Field Summary
Fields inherited from class com.codeborne.selenide.WebElementCondition
missingElementSatisfiesCondition, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codeborne.selenide.CheckResult
check
(com.codeborne.selenide.Driver driver, org.openqa.selenium.WebElement element) Delegates the checking of a specific condition toSpecificConditionHandler
and returns the result.Methods inherited from class com.codeborne.selenide.WebElementCondition
because, getName, missingElementSatisfiesCondition, negate, or, toString
-
Constructor Details
-
SpecificCondition
-
-
Method Details
-
check
public com.codeborne.selenide.CheckResult check(com.codeborne.selenide.Driver driver, org.openqa.selenium.WebElement element) Delegates the checking of a specific condition toSpecificConditionHandler
and returns the result.- Specified by:
check
in classcom.codeborne.selenide.WebElementCondition
- 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).
-