All Implemented Interfaces:
Component, Drawer, Element

public class N2oDrawer extends N2oComponent implements Drawer
Окно drawer для автотестирования
  • Constructor Details

    • N2oDrawer

      public N2oDrawer()
  • Method Details

    • content

      public <T extends Page> T content(Class<T> pageClass)
      Description copied from interface: Drawer
      Возвращает страницу контента, лежащего внутри компонента drawer
      Specified by:
      content in interface Drawer
      Parameters:
      pageClass - тип возвращаемой страницы
      Returns:
      компонент страница для автотестирования
    • toolbar

      public Drawer.DrawerToolbar toolbar()
      Specified by:
      toolbar in interface Drawer
      Returns:
      компонент панель кнопок для автотестирования
    • shouldHaveTitle

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

      public void shouldHavePlacement(Drawer.PlacementEnum placement)
      Description copied from interface: Drawer
      Проверка соответствия положения окна
      Specified by:
      shouldHavePlacement in interface Drawer
      Parameters:
      placement - ожидаемое положение окна
    • shouldHaveWidth

      public void shouldHaveWidth(String width)
      Description copied from interface: Drawer
      Проверка соответствия ширины выезжаемого окна
      Specified by:
      shouldHaveWidth in interface Drawer
      Parameters:
      width - ожидаемая ширина окна
    • shouldHaveHeight

      public void shouldHaveHeight(String height)
      Description copied from interface: Drawer
      Проверка соответствия высоты выезжаемого окна
      Specified by:
      shouldHaveHeight in interface Drawer
      Parameters:
      height - ожидаемая высота окна
    • close

      public void close()
      Description copied from interface: Drawer
      Закрытие окна через иконку крестика
      Specified by:
      close in interface Drawer
    • closeByEsc

      public void closeByEsc()
      Description copied from interface: Drawer
      Закрытие окна через нажатия клавишу Esc
      Specified by:
      closeByEsc in interface Drawer
    • clickBackdrop

      public void clickBackdrop()
      Description copied from interface: Drawer
      Клик по фону вне окна для закрытия
      Specified by:
      clickBackdrop in interface Drawer
    • shouldHaveFixedFooter

      public void shouldHaveFixedFooter()
      Description copied from interface: Drawer
      Проверка того, что нижняя часть окна зафиксирована
      Specified by:
      shouldHaveFixedFooter in interface Drawer
    • shouldNotHaveFixedFooter

      public void shouldNotHaveFixedFooter()
      Description copied from interface: Drawer
      Проверка того, что нижняя часть окна не зафиксирована
      Specified by:
      shouldNotHaveFixedFooter in interface Drawer
    • scrollUp

      public void scrollUp()
      Description copied from interface: Drawer
      Прокрутка окна в самый верх
      Specified by:
      scrollUp in interface Drawer
    • scrollDown

      public void scrollDown()
      Description copied from interface: Drawer
      Прокрутка окна в самый низ
      Specified by:
      scrollDown in interface Drawer
    • getFooter

      protected com.codeborne.selenide.SelenideElement getFooter()