All Implemented Interfaces:
Component, Element, Region, TabsRegion

public class N2oTabsRegion extends N2oRegion implements TabsRegion
Регион в виде вкладок для автотестирования
  • Constructor Details

    • N2oTabsRegion

      public N2oTabsRegion()
  • Method Details

    • tab

      public TabsRegion.TabItem tab(int index)
      Description copied from interface: TabsRegion
      Возвращает элемент вкладку по номеру
      Specified by:
      tab in interface TabsRegion
      Parameters:
      index - номер вкладки
      Returns:
      Компонент вкладка для автотестирования
    • shouldHaveSize

      public void shouldHaveSize(int size)
      Description copied from interface: TabsRegion
      Проверка количества вкладок
      Specified by:
      shouldHaveSize in interface TabsRegion
      Parameters:
      size - ожидаемое количество
    • shouldHaveMaxHeight

      public void shouldHaveMaxHeight(int height)
      Description copied from interface: TabsRegion
      Проверка максимальной высоты
      Specified by:
      shouldHaveMaxHeight in interface TabsRegion
      Parameters:
      height - ожидаемая максимальная высота в пикселях
    • shouldHaveScrollbar

      public void shouldHaveScrollbar()
      Description copied from interface: TabsRegion
      Проверка наличия полосы прокрутки
      Specified by:
      shouldHaveScrollbar in interface TabsRegion
    • shouldNotHaveScrollbar

      public void shouldNotHaveScrollbar()
      Description copied from interface: TabsRegion
      Проверка отсутствия полосы прокрутки
      Specified by:
      shouldNotHaveScrollbar in interface TabsRegion
    • tab

      public TabsRegion.TabItem tab(com.codeborne.selenide.WebElementCondition by)
      Description copied from interface: TabsRegion
      Возвращает элемент вкладку по словию
      Specified by:
      tab in interface TabsRegion
      Parameters:
      by - услвоие поиска
      Returns:
      Компонент вкладка для автотестирования
    • getTabsContent

      protected com.codeborne.selenide.SelenideElement getTabsContent()