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.CheckResultcheck(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, waitMethods 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:SpecificConditionHandlerChecks whether the current handler matches the passedSpecificCondition.- Specified by:
checkin interfaceSpecificConditionHandler- Parameters:
condition- condition to check- Returns:
CheckResultthat containsCheckResult.Verdict.ACCEPTif the current handler matches the passedSpecificCondition,CheckResult.Verdict.REJECTotherwise
-
should
Description copied from interface:SelenideElementWrapperSequentially 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:
shouldin interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checks- Returns:
thisto call fluent API- See Also:
-
should
Description copied from interface:SelenideElementWrapperWait until given element meets given condition (with given timeout).- Specified by:
shouldin interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checkstimeout- timeout for checks- Returns:
thisto call fluent API- See Also:
-
shouldHave
Description copied from interface:SelenideElementWrapperSame asSelenideElementWrapper.should(WebElementCondition...). Should be used for better readability.- Specified by:
shouldHavein interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checks- Returns:
thisto call fluent API
-
shouldHave
Description copied from interface:SelenideElementWrapperWait until given element meets given condition (with given timeout).- Specified by:
shouldHavein interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checkstimeout- timeout for checks- Returns:
thisto call fluent API- See Also:
-
shouldBe
Description copied from interface:SelenideElementWrapperSame asSelenideElementWrapper.should(WebElementCondition...). Should be used for better readability.- Specified by:
shouldBein interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checks- Returns:
thisto call fluent API
-
shouldBe
Description copied from interface:SelenideElementWrapperWait until given element meets given condition (with given timeout).- Specified by:
shouldBein interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checkstimeout- timeout for checks- Returns:
thisto call fluent API- See Also:
-
shouldNot
Description copied from interface:SelenideElementWrapperSequentially 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:
shouldNotin interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checks- Returns:
thisto call fluent API- See Also:
-
shouldNot
Description copied from interface:SelenideElementWrapperWait until given element doesn't meet given condition (with given timeout).- Specified by:
shouldNotin interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checkstimeout- timeout for checks- Returns:
thisto call fluent API- See Also:
-
shouldNotHave
Description copied from interface:SelenideElementWrapperSame asSelenideElementWrapper.shouldNot(WebElementCondition...). Should be used for better readability.- Specified by:
shouldNotHavein interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checks- Returns:
thisto call fluent API
-
shouldNotHave
Description copied from interface:SelenideElementWrapperWait until given element doesn't meet given condition (with given timeout).- Specified by:
shouldNotHavein interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checkstimeout- timeout for checks- Returns:
thisto call fluent API- See Also:
-
shouldNotBe
Description copied from interface:SelenideElementWrapperSame asSelenideElementWrapper.shouldNot(WebElementCondition...). Should be used for better readability.- Specified by:
shouldNotBein interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checks- Returns:
thisto call fluent API
-
shouldNotBe
Description copied from interface:SelenideElementWrapperWait until given element doesn't meet given condition (with given timeout).- Specified by:
shouldNotBein interfaceSelenideElementWrapper<T>- Parameters:
condition- conditions for checkstimeout- timeout for checks- Returns:
thisto call fluent API- See Also:
-