Class N2oAnchorMenuItem

All Implemented Interfaces:
Badge, Component, Element, AnchorMenuItem, MenuItem

public class N2oAnchorMenuItem extends N2oMenuItem implements AnchorMenuItem
Кнопка с ссылкой для автотестирования
  • Constructor Details

    • N2oAnchorMenuItem

      public N2oAnchorMenuItem()
  • Method Details

    • shouldHaveIcon

      public void shouldHaveIcon()
      Description copied from interface: AnchorMenuItem
      Проверка наличия иконки
      Specified by:
      shouldHaveIcon in interface AnchorMenuItem
    • shouldHaveIconCssClass

      public void shouldHaveIconCssClass(String cssClass)
      Description copied from interface: AnchorMenuItem
      Проверка иконки на соответствие
      Specified by:
      shouldHaveIconCssClass in interface AnchorMenuItem
      Parameters:
      cssClass - ожидаемый класс иконки
    • shouldHaveBadge

      public void shouldHaveBadge()
      Description copied from interface: AnchorMenuItem
      Проверка наличия баджа внутри кнопки
      Specified by:
      shouldHaveBadge in interface AnchorMenuItem
    • shouldHaveBadgeText

      public void shouldHaveBadgeText(String text, Duration... duration)
      Description copied from interface: AnchorMenuItem
      Проверка текста баджа на соответствие
      Specified by:
      shouldHaveBadgeText in interface AnchorMenuItem
      Parameters:
      text - ожидаемый текст баджа
    • shouldHaveBadgeColor

      public void shouldHaveBadgeColor(String color)
      Description copied from interface: AnchorMenuItem
      Проверка цвета баджа на соответствие
      Specified by:
      shouldHaveBadgeColor in interface AnchorMenuItem
      Parameters:
      color - ожидаемый текст баджа
    • badgeShouldHavePosition

      public void badgeShouldHavePosition(BadgePosition position)
      Description copied from interface: Badge
      Проверка позиции баджа на соответствие ожидаемой позиции
      Specified by:
      badgeShouldHavePosition in interface Badge
      Parameters:
      position - ожидаемая позиция баджа
    • shouldHaveUrl

      public void shouldHaveUrl(String url)
      Description copied from interface: AnchorMenuItem
      Проверка ссылки на соответствие
      Specified by:
      shouldHaveUrl in interface AnchorMenuItem
      Parameters:
      url - ожидаемая ссылка
    • shouldNotBeClickable

      public void shouldNotBeClickable()
      Description copied from interface: AnchorMenuItem
      Проверка на некликабельность
      Specified by:
      shouldNotBeClickable in interface AnchorMenuItem
    • icon

      protected com.codeborne.selenide.SelenideElement icon()
    • badge

      protected com.codeborne.selenide.SelenideElement badge()