All Implemented Interfaces:
ComponentsCollection, Menu

public class N2oMenu extends N2oComponentsCollection implements Menu
Меню для автотестирования
  • Constructor Details

    • N2oMenu

      public N2oMenu()
  • Method Details

    • anchor

      public AnchorMenuItem anchor(int index)
      Description copied from interface: Menu

      Возвращает кнопку с ссылкой по индексу из списка кнопок в меню

      For example: nav().anchor(0);

      Specified by:
      anchor in interface Menu
      Parameters:
      index - номер кнопки из списка кнопок в меню
      Returns:
      Компонент кнопка с ссылкой для автотестирования
    • anchor

      public AnchorMenuItem anchor(com.codeborne.selenide.WebElementCondition findBy)
      Description copied from interface: Menu

      Возвращает кнопку с ссылкой по условию из списка таких кнопок в меню

      For example: nav().anchor(Condition.visible);

      Specified by:
      anchor in interface Menu
      Parameters:
      findBy - условие поиска
      Returns:
      Компонент кнопка с ссылкой для автотестирования
    • item

      public <T extends MenuItem> T item(int index, Class<T> componentClass)
      Description copied from interface: Menu

      Возвращает кнопку из меню по индексу

      For example: extra().item(0, AnchorMenuItem.class);

      Specified by:
      item in interface Menu
      Parameters:
      index - номер кнопки из списка кнопок в меню
      componentClass - тип возвращаемой кнопки
      Returns:
      Кнопка из меню для автотестирования
    • item

      public <T extends MenuItem> T item(com.codeborne.selenide.WebElementCondition condition, Class<T> componentClass)
      Description copied from interface: Menu

      Возвращает кнопку из меню по индексу

      For example: extra().item(Condition.visible, AnchorMenuItem.class);

      Specified by:
      item in interface Menu
      Parameters:
      condition - условие поиска
      componentClass - тип возвращаемой кнопки
      Returns:
      Кнопка из меню для автотестирования