All Implemented Interfaces:
Sidebar, Component, Element

public class N2oSidebar extends N2oComponent implements Sidebar
Боковая панель для автотестирования
  • Constructor Details

    • N2oSidebar

      public N2oSidebar(com.codeborne.selenide.SelenideElement element)
  • Method Details

    • shouldHaveTitle

      public void shouldHaveTitle(String title, Duration... duration)
      Description copied from interface: Sidebar
      Проверка точного соответствия текста заголовка (без учета регистра) ожидаемому значению
      Specified by:
      shouldHaveTitle in interface Sidebar
      Parameters:
      title - ожидаемый текст заголовка
    • shouldHaveBrandLogo

      public void shouldHaveBrandLogo(String src)
      Description copied from interface: Sidebar
      Проверка пути к файлу с логотипом на соответствие ожидаемому значению
      Specified by:
      shouldHaveBrandLogo in interface Sidebar
      Parameters:
      src - ожидаемый путь к логотипу
    • shouldHaveSubtitle

      public void shouldHaveSubtitle(String subtitle, Duration... duration)
      Description copied from interface: Sidebar
      Проверка точного соответствия текста подзаголовка ожидаемому значению
      Specified by:
      shouldHaveSubtitle in interface Sidebar
      Parameters:
      subtitle - ожидаемое значение заголовка
    • shouldBeFixed

      public void shouldBeFixed()
      Description copied from interface: Sidebar
      Проверка зафиксированности сайдбара
      Specified by:
      shouldBeFixed in interface Sidebar
    • shouldBeRight

      public void shouldBeRight()
      Description copied from interface: Sidebar
      Проверка того, что сайдбар находится на правой стороне страницы
      Specified by:
      shouldBeRight in interface Sidebar
    • shouldBeOverlay

      public void shouldBeOverlay()
      Description copied from interface: Sidebar
      Проверка того, что сайдбар перекрывает страницу
      Specified by:
      shouldBeOverlay in interface Sidebar
    • shouldHaveState

      public void shouldHaveState(net.n2oapp.framework.api.metadata.application.SidebarState state)
      Description copied from interface: Sidebar
      Проверяет состояние скрытости сайдбара по умолчанию
      Specified by:
      shouldHaveState in interface Sidebar
      Parameters:
      state - ожидаемое состояние
    • clickToggleBtn

      public void clickToggleBtn()
      Description copied from interface: Sidebar
      Клик по кнопке раскрытия сайдбара
      Specified by:
      clickToggleBtn in interface Sidebar
    • extra

      public Menu extra()
      Description copied from interface: Sidebar
      Возвращает меню с элементами из extra-menu
      Specified by:
      extra in interface Sidebar
      Returns:
      Компонент меню для автотестирования