Package io.jmix.masquerade.component
Class Notification
- All Implemented Interfaces:
SpecificConditionHandler
,ByLocator
,SelenideElementWrapper<Notification>
Web-element wrapper for notifications. Supports closing,
NotificationTheme
,
NotificationPosition
, NotificationTitle
, NotificationTitleContains
,
NotificationMessage
and NotificationMessageContains
condition checking.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Theme position of the notification.static enum
Theme enumeration of the notification. -
Field Summary
Fields inherited from class io.jmix.masquerade.sys.Composite
by, wrappedElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codeborne.selenide.CheckResult
check
(SpecificCondition condition) Checks whether the current handler matches the passedSpecificCondition
.void
close()
Closes this notification by clicking close button.protected com.codeborne.selenide.SelenideElement
protected com.codeborne.selenide.SelenideElement
Methods inherited from class io.jmix.masquerade.sys.Composite
getBy, getDelegate
Methods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHave
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, shouldHaveAttribute, shouldHaveAttributeValue, shouldHaveCss, shouldHaveCssValue, shouldNotHaveAttribute, shouldNotHaveAttributeValue, shouldNotHaveCss, shouldNotHaveCssValue
-
Constructor Details
-
Notification
public Notification()
-
-
Method Details
-
close
public void close()Closes this notification by clicking close button. -
check
Description copied from interface:SpecificConditionHandler
Checks whether the current handler matches the passedSpecificCondition
.- Specified by:
check
in interfaceSpecificConditionHandler
- Overrides:
check
in classAbstractSpecificConditionHandler<Notification>
- Parameters:
condition
- condition to check- Returns:
CheckResult
that containsCheckResult.Verdict.ACCEPT
if the current handler matches the passedSpecificCondition
,CheckResult.Verdict.REJECT
otherwise
-
getTitleElement
protected com.codeborne.selenide.SelenideElement getTitleElement() -
getMessageElement
protected com.codeborne.selenide.SelenideElement getMessageElement()
-