Package io.jmix.masquerade.component
Class AbstractSpecificConditionHandler<T>
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
- Type Parameters:
T
- inheritor class type
- All Implemented Interfaces:
SpecificConditionHandler
,SelenideElementWrapper<T>
- Direct Known Subclasses:
AbstractComponent
,AbstractOverlay
,Composite
,DataGrid.AbstractCell
,DataGrid.AbstractRow
public abstract class AbstractSpecificConditionHandler<T>
extends Object
implements SelenideElementWrapper<T>, SpecificConditionHandler
Abstract class for
SpecificConditionHandler
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codeborne.selenide.CheckResult
check
(SpecificCondition condition) Checks whether the current handler matches the passedSpecificCondition
.should
(com.codeborne.selenide.WebElementCondition... condition) Sequentially checks that given element meets all given conditions.Wait until given element meets given condition (with given timeout).shouldBe
(com.codeborne.selenide.WebElementCondition... condition) Wait until given element meets given condition (with given timeout).shouldHave
(com.codeborne.selenide.WebElementCondition... condition) shouldHave
(com.codeborne.selenide.WebElementCondition condition, Duration timeout) Wait until given element meets given condition (with given timeout).shouldNot
(com.codeborne.selenide.WebElementCondition... condition) Sequentially checks that given element doesn't meet given conditions.Wait until given element doesn't meet given condition (with given timeout).shouldNotBe
(com.codeborne.selenide.WebElementCondition... condition) shouldNotBe
(com.codeborne.selenide.WebElementCondition condition, Duration timeout) Wait until given element doesn't meet given condition (with given timeout).shouldNotHave
(com.codeborne.selenide.WebElementCondition... condition) shouldNotHave
(com.codeborne.selenide.WebElementCondition condition, Duration timeout) Wait until given element doesn't meet given condition (with given timeout).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.masquerade.sys.SelenideElementWrapper
disabled, displayed, enabled, exists, getDelegate, shouldHaveAttribute, shouldHaveAttributeValue, shouldHaveCss, shouldHaveCssValue, shouldNotHaveAttribute, shouldNotHaveAttributeValue, shouldNotHaveCss, shouldNotHaveCssValue
-
Constructor Details
-
AbstractSpecificConditionHandler
public AbstractSpecificConditionHandler()
-
-
Method Details
-
check
Description copied from interface:SpecificConditionHandler
Checks whether the current handler matches the passedSpecificCondition
.- Specified by:
check
in interfaceSpecificConditionHandler
- Parameters:
condition
- condition to check- Returns:
CheckResult
that containsCheckResult.Verdict.ACCEPT
if the current handler matches the passedSpecificCondition
,CheckResult.Verdict.REJECT
otherwise
-
should
Description copied from interface:SelenideElementWrapper
Sequentially checks that given element meets all given conditions.NOTE: If element doesn't match then conditions immediately, waits up to 4 seconds until element meets the conditions. It's extremely useful for dynamic content.
- Specified by:
should
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checks- Returns:
this
to call fluent API- See Also:
-
should
Description copied from interface:SelenideElementWrapper
Wait until given element meets given condition (with given timeout).- Specified by:
should
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checkstimeout
- timeout for checks- Returns:
this
to call fluent API- See Also:
-
shouldHave
Description copied from interface:SelenideElementWrapper
Same asSelenideElementWrapper.should(WebElementCondition...)
. Should be used for better readability.- Specified by:
shouldHave
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checks- Returns:
this
to call fluent API
-
shouldHave
Description copied from interface:SelenideElementWrapper
Wait until given element meets given condition (with given timeout).- Specified by:
shouldHave
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checkstimeout
- timeout for checks- Returns:
this
to call fluent API- See Also:
-
shouldBe
Description copied from interface:SelenideElementWrapper
Same asSelenideElementWrapper.should(WebElementCondition...)
. Should be used for better readability.- Specified by:
shouldBe
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checks- Returns:
this
to call fluent API
-
shouldBe
Description copied from interface:SelenideElementWrapper
Wait until given element meets given condition (with given timeout).- Specified by:
shouldBe
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checkstimeout
- timeout for checks- Returns:
this
to call fluent API- See Also:
-
shouldNot
Description copied from interface:SelenideElementWrapper
Sequentially checks that given element doesn't meet given conditions.NOTE: If element doesn't match then conditions immediately, waits up to 4 seconds until element meets the conditions. It's extremely useful for dynamic content.
- Specified by:
shouldNot
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checks- Returns:
this
to call fluent API- See Also:
-
shouldNot
Description copied from interface:SelenideElementWrapper
Wait until given element doesn't meet given condition (with given timeout).- Specified by:
shouldNot
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checkstimeout
- timeout for checks- Returns:
this
to call fluent API- See Also:
-
shouldNotHave
Description copied from interface:SelenideElementWrapper
Same asSelenideElementWrapper.shouldNot(WebElementCondition...)
. Should be used for better readability.- Specified by:
shouldNotHave
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checks- Returns:
this
to call fluent API
-
shouldNotHave
Description copied from interface:SelenideElementWrapper
Wait until given element doesn't meet given condition (with given timeout).- Specified by:
shouldNotHave
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checkstimeout
- timeout for checks- Returns:
this
to call fluent API- See Also:
-
shouldNotBe
Description copied from interface:SelenideElementWrapper
Same asSelenideElementWrapper.shouldNot(WebElementCondition...)
. Should be used for better readability.- Specified by:
shouldNotBe
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checks- Returns:
this
to call fluent API
-
shouldNotBe
Description copied from interface:SelenideElementWrapper
Wait until given element doesn't meet given condition (with given timeout).- Specified by:
shouldNotBe
in interfaceSelenideElementWrapper<T>
- Parameters:
condition
- conditions for checkstimeout
- timeout for checks- Returns:
this
to call fluent API- See Also:
-