Class Notification

All Implemented Interfaces:
SpecificConditionHandler, ByLocator, SelenideElementWrapper<Notification>

public class Notification extends Composite<Notification>
Web-element wrapper for notifications. Supports closing, NotificationTheme, NotificationPosition, NotificationTitle, NotificationTitleContains, NotificationMessage and NotificationMessageContains condition checking.
  • Constructor Details

    • Notification

      public Notification()
  • Method Details

    • close

      public void close()
      Closes this notification by clicking close button.
    • check

      public com.codeborne.selenide.CheckResult check(SpecificCondition condition)
      Description copied from interface: SpecificConditionHandler
      Checks whether the current handler matches the passed SpecificCondition.
      Specified by:
      check in interface SpecificConditionHandler
      Overrides:
      check in class AbstractSpecificConditionHandler<Notification>
      Parameters:
      condition - condition to check
      Returns:
      CheckResult that contains CheckResult.Verdict.ACCEPT if the current handler matches the passed SpecificCondition, CheckResult.Verdict.REJECT otherwise
    • getTitleElement

      protected com.codeborne.selenide.SelenideElement getTitleElement()
    • getMessageElement

      protected com.codeborne.selenide.SelenideElement getMessageElement()