java.lang.Object
net.n2oapp.framework.autotest.impl.collection.N2oComponentsCollection
net.n2oapp.framework.autotest.impl.collection.N2oToolbar
All Implemented Interfaces:
ComponentsCollection, Toolbar

public class N2oToolbar extends N2oComponentsCollection implements Toolbar
Панель действий для автотестирования
  • Constructor Details

    • N2oToolbar

      public N2oToolbar()
  • Method Details

    • button

      public StandardButton button(String label)
      Description copied from interface: Toolbar

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

      For example: topLeft().button("Кнопка")

      Specified by:
      button in interface Toolbar
      Parameters:
      label - метка кнопки в панели действий
      Returns:
      Компонент стандартная кнопка для автотестирования
    • button

      public StandardButton button(com.codeborne.selenide.WebElementCondition findBy)
      Description copied from interface: Toolbar

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

      For example: topLeft().button("Кнопка")

      Specified by:
      button in interface Toolbar
      Parameters:
      findBy - условие поиска
      Returns:
      Компонент стандартная кнопка для автотестирования
    • button

      public <T extends Button> T button(int index, Class<T> componentClass)
      Description copied from interface: Toolbar

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

      For example: toolbar.button(2, StandardButton.class)

      Specified by:
      button in interface Toolbar
      Parameters:
      index - порядковый номер кнопки в панил действий
      componentClass - требуемый возвращаемый тип
      Returns:
      Компонент кнопка заданного типа для автотестирования
    • button

      public <T extends Button> T button(String label, Class<T> componentClass)
      Description copied from interface: Toolbar

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

      For example: toolbar.button("Кнопка", StandardButton.class)

      Specified by:
      button in interface Toolbar
      Parameters:
      label - метка кнопки
      componentClass - возвращаемый тип
      Returns:
      Компонент кнопка для автотестирования
    • button

      public <T extends Button> T button(com.codeborne.selenide.WebElementCondition findBy, Class<T> componentClass)
      Description copied from interface: Toolbar

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

      For example: toolbar.button(Condition.text("Кнопка"), StandardButton.class)

      Specified by:
      button in interface Toolbar
      Parameters:
      findBy - условие поиска
      componentClass - возвращаемый тип
      Returns:
      Компонент кнопка для автотестирования