Class N2oScrollspyRegion

All Implemented Interfaces:
Component, Element, Region, ScrollspyRegion

public class N2oScrollspyRegion extends N2oRegion implements ScrollspyRegion
Регион с отслеживанием прокрутки для автотестирования
  • Constructor Details

    • N2oScrollspyRegion

      public N2oScrollspyRegion()
  • Method Details

    • contentItem

      public ScrollspyRegion.ContentItem contentItem(int index)
      Description copied from interface: ScrollspyRegion
      Возвращает содержание (Виджеты/Регионы) страницы по номеру
      Specified by:
      contentItem in interface ScrollspyRegion
      Parameters:
      index - номер необходимого блока
      Returns:
      Компонент содержащий содержание страницы для автотестирования
    • contentItem

      public ScrollspyRegion.ContentItem contentItem(String title)
      Description copied from interface: ScrollspyRegion
      Возвращает содержание (Виджеты/Регионы) страницы по заголовку
      Specified by:
      contentItem in interface ScrollspyRegion
      Parameters:
      title - заголовок необходимого блока
      Returns:
      Компонент содержащий содержание страницы для автотестирования
    • activeContentItemShouldHaveTitle

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

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

      protected com.codeborne.selenide.ElementsCollection contentItems()