All Implemented Interfaces:
Component, Element, Page
Direct Known Subclasses:
N2oLeftRightPage, N2oSimplePage, N2oStandardPage, N2oTopLeftRightPage

public class N2oPage extends N2oComponent implements Page
Страница для автотестирования
  • Constructor Details

    • N2oPage

      public N2oPage()
  • Method Details

    • header

      public SimpleHeader header()
      Specified by:
      header in interface Page
      Returns:
      Компонент header для автотестирования
    • sidebar

      public Sidebar sidebar()
      Specified by:
      sidebar in interface Page
      Returns:
      Компонент боковой панели для автотестирования
    • footer

      public Footer footer()
      Specified by:
      footer in interface Page
      Returns:
      Компонент footer для автотестирования
    • toolbar

      public Page.PageToolbar toolbar()
      Specified by:
      toolbar in interface Page
      Returns:
      Компонент панель кнопок страницы для автотестирования
    • overlay

      public Page.Overlay overlay()
      Specified by:
      overlay in interface Page
      Returns:
      Компонент оверлей для автотестирования
    • dialog

      public Page.Dialog dialog(String title)
      Description copied from interface: Page
      Возвращает компонент диалог, заголовок которого совпадает с ожидаемым
      Specified by:
      dialog in interface Page
      Parameters:
      title - заголовок диалога
      Returns:
      Компонент диалог для автотестирования
    • popover

      public Page.Popover popover(String title)
      Description copied from interface: Page
      Возвращает компонент поповер, заголовок которого совпадает с ожидаемым
      Specified by:
      popover in interface Page
      Parameters:
      title - заголовок диалога
      Returns:
      Компонент поповер для автотестирования
    • alerts

      public Alerts alerts(Alert.PlacementEnum placement)
      Description copied from interface: Page
      Возвращает компонент оповещение, положение которого совпадает с ожидаемым
      Specified by:
      alerts in interface Page
      Parameters:
      placement - положение оповещения на странице
      Returns:
      Компонент оповещение для автотестирования
    • shouldHaveUrlMatches

      public void shouldHaveUrlMatches(String regex)
      Description copied from interface: Page
      Проверка совпадения части ссылки страницы
      Specified by:
      shouldHaveUrlMatches in interface Page
      Parameters:
      regex - часть ссылки в виде регулярного выражения
    • shouldHaveTitle

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

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

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

      public void shouldHaveCssClass(String classname)
      Description copied from interface: Component
      Проверка наличия css класса у компонент
      Specified by:
      shouldHaveCssClass in interface Component
      Overrides:
      shouldHaveCssClass in class N2oComponent
      Parameters:
      classname - ожидаемый css класс
    • shouldHaveStyle

      public void shouldHaveStyle(String style)
      Description copied from interface: Component
      Проверка стиля компонент на соответствие
      Specified by:
      shouldHaveStyle in interface Component
      Overrides:
      shouldHaveStyle in class N2oComponent
      Parameters:
      style - ожидаемый стиль компонент
    • shouldHaveLayout

      public void shouldHaveLayout(net.n2oapp.framework.api.metadata.application.NavigationLayoutEnum layout)
      Description copied from interface: Page
      Проверка макета на соответствие
      Specified by:
      shouldHaveLayout in interface Page
      Parameters:
      layout - ожидаемый макет
    • shouldHaveError

      public void shouldHaveError(int statusCode)
      Description copied from interface: Page
      Проверка http-ошибки на странице
      Specified by:
      shouldHaveError in interface Page
      Parameters:
      statusCode - ожидаемая ошибка
    • body

      protected com.codeborne.selenide.SelenideElement body()