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

public class N2oFields extends N2oComponentsCollection implements Fields
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    field(int index)
    Возвращает поле стандартного типа из списка полей на форме по индексу из списка
    <T extends Snippet>
    T
    field(int index, Class<T> componentClass)
    Возвращает поле типа, наследуемого от Snippet, по индексу из списка полей для автотестирования
    field(com.codeborne.selenide.WebElementCondition findBy)
    Возвращает поле стандартного типа из списка полей на форме по условию
    <T extends Field>
    T
    field(com.codeborne.selenide.WebElementCondition findBy, Class<T> componentClass)
    Возвращает поле типа, наследуемого от Field, по условию из списка полей
    <T extends Snippet>
    T
    field(Class<T> componentClass)
    Возвращает первое из списка поле типа, наследуемого от Snippet
    field(String label)
    Возвращает поле стандартного типа из списка полей на форме по метке
    <T extends Field>
    T
    field(String label, Class<T> componentClass)
    Возвращает поле типа, наследуемого от Field, по метке из списка полей

    Methods inherited from class net.n2oapp.framework.autotest.impl.collection.N2oComponentsCollection

    elements, setElements, shouldBeEmpty, shouldHaveSize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.n2oapp.framework.autotest.api.collection.ComponentsCollection

    elements, setElements, shouldBeEmpty, shouldHaveSize
  • Constructor Details

    • N2oFields

      public N2oFields()
  • Method Details

    • field

      public StandardField field(String label)
      Description copied from interface: Fields

      Возвращает поле стандартного типа из списка полей на форме по метке

      For example: fields().field("Поле ввода");

      Specified by:
      field in interface Fields
      Parameters:
      label - значение метки у поля
      Returns:
      Стандартное поле формы для автотестирования
    • field

      public StandardField field(int index)
      Description copied from interface: Fields

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

      For example: fields().field(0);

      Specified by:
      field in interface Fields
      Parameters:
      index - номер требуемого поля
      Returns:
      Стандартное поле формы для автотестирования
    • field

      public StandardField field(com.codeborne.selenide.WebElementCondition findBy)
      Description copied from interface: Fields

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

      For example: fields().field(Condition.id("name"));

      Specified by:
      field in interface Fields
      Parameters:
      findBy - условие поиска
      Returns:
      Стандартное поле формы для автотестирования
    • field

      public <T extends Snippet> T field(Class<T> componentClass)
      Description copied from interface: Fields

      Возвращает первое из списка поле типа, наследуемого от Snippet

      For example: fields().field(Alert.class);

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

      public <T extends Field> T field(String label, Class<T> componentClass)
      Description copied from interface: Fields

      Возвращает поле типа, наследуемого от Field, по метке из списка полей

      For example: fields().field("Field", StandardButton.class);

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

      public <T extends Field> T field(com.codeborne.selenide.WebElementCondition findBy, Class<T> componentClass)
      Description copied from interface: Fields

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

      For example: fields().field(Condition.id("name"), StandardButton.class);

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

      public <T extends Snippet> T field(int index, Class<T> componentClass)
      Description copied from interface: Fields

      Возвращает поле типа, наследуемого от Snippet, по индексу из списка полей для автотестирования

      For example: fields().field("name", Alert.class);

      Specified by:
      field in interface Fields
      Parameters:
      index - номер поля в списке полей
      componentClass - возвращаемый тип элемента
      Returns:
      Компонент поле для автотестирования