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

public class N2oWidgets extends N2oComponentsCollection implements Widgets
  • Constructor Details

    • N2oWidgets

      public N2oWidgets()
  • Method Details

    • widget

      public <T extends Widget> T widget(int index, Class<T> componentClass)
      Description copied from interface: Widgets

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

      For example: content().widget(1, TestWidget.class)

      Specified by:
      widget in interface Widgets
      Parameters:
      index - номер виджета на странице
      componentClass - возвращаемый тип
      Returns:
      Компонент виджет для автотестирования
    • widget

      public <T extends Widget> T widget(Class<T> componentClass)
      Description copied from interface: Widgets

      Возвращает первый найденный виджет

      For example: content().widget(TestWidget.class)

      Specified by:
      widget in interface Widgets
      Parameters:
      componentClass - возвращаемый тип
      Returns:
      Компонент виджет для автотестирования