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 enumTheme position of the notification.static enumTheme enumeration of the notification. -
Field Summary
Fields inherited from class io.jmix.masquerade.sys.Composite
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this notification by clicking close button.protected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementresolve(SpecificCondition condition) Resolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler.Methods inherited from class io.jmix.masquerade.sys.Composite
getBy, getDelegateMethods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHaveMethods 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, 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. -
resolve
Description copied from interface:SpecificConditionHandlerResolves the passedSpecificConditioninto aSpecificCheckthat describes how it must be checked for the current handler. The actual verdict is computed centrally bySpecificCondition.check(com.codeborne.selenide.Driver, org.openqa.selenium.WebElement).- Specified by:
resolvein interfaceSpecificConditionHandler- Overrides:
resolvein classAbstractSpecificConditionHandler<Notification>- Parameters:
condition- condition to resolve- Returns:
- a
SpecificCheckdescribing how to check the passed condition
-
getTitleElement
protected com.codeborne.selenide.SelenideElement getTitleElement() -
getMessageElement
protected com.codeborne.selenide.SelenideElement getMessageElement()
-