Class N2oStandardButton

All Implemented Interfaces:
Badge, Button, StandardButton, Component, Element

public class N2oStandardButton extends N2oButton implements StandardButton
Стандартная кнопка для автотестирования
  • Constructor Details

    • N2oStandardButton

      public N2oStandardButton()
  • Method Details

    • shouldHaveLabel

      public void shouldHaveLabel(String label, Duration... duration)
      Description copied from interface: StandardButton
      Проверка точного соответствия метки (без учета регистра) у кнопки
      Specified by:
      shouldHaveLabel in interface StandardButton
      Parameters:
      label - ожидаемое значение метки
    • shouldHaveDescription

      public void shouldHaveDescription(String description, Duration... duration)
      Description copied from interface: StandardButton
      Проверка описания на соответствие
      Specified by:
      shouldHaveDescription in interface StandardButton
      Parameters:
      description - ожидаемый текст описания
    • shouldHaveIcon

      public void shouldHaveIcon(String iconName)
      Description copied from interface: StandardButton
      Проверка класса иконки у кнопки на соответствие ожидаемому значению
      Specified by:
      shouldHaveIcon in interface StandardButton
      Parameters:
      iconName - ожидаемый класс иконки
    • shouldNotHaveIcon

      public void shouldNotHaveIcon()
      Description copied from interface: StandardButton
      Проверка отсутствия иконки у кнопки
      Specified by:
      shouldNotHaveIcon in interface StandardButton
    • badgeShouldHavePosition

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

      public void shouldBeRounded()
      Description copied from interface: StandardButton
      Проверка круглой формы кнопки
      Specified by:
      shouldBeRounded in interface StandardButton
    • shouldNotBeRounded

      public void shouldNotBeRounded()
      Description copied from interface: StandardButton
      Проверка не круглой формы кнопки
      Specified by:
      shouldNotBeRounded in interface StandardButton