Class N2oStandardField

All Implemented Interfaces:
Component, Element, Field, StandardField, Help

public class N2oStandardField extends N2oField implements StandardField
Стандартное поле формы для автотестирования
  • Constructor Details

    • N2oStandardField

      public N2oStandardField()
  • Method Details

    • control

      public <T extends Control> T control(Class<T> componentClass)
      Description copied from interface: StandardField
      Возвращает поле ввода для редактирования
      Specified by:
      control in interface StandardField
      Parameters:
      componentClass - тип возвращаемого поля
      Returns:
      компонент поле ввода для автотестирования
    • toolbar

      public Toolbar toolbar()
      Specified by:
      toolbar in interface StandardField
      Returns:
      компонент панель кнопок для автотестирования
    • shouldBeRequired

      public void shouldBeRequired()
      Description copied from interface: StandardField
      Проверка обязательности заполнения поля
      Specified by:
      shouldBeRequired in interface StandardField
    • shouldNotBeRequired

      public void shouldNotBeRequired()
      Description copied from interface: StandardField
      Проверка необязательности поля
      Specified by:
      shouldNotBeRequired in interface StandardField
    • shouldHaveLabelBy

      public void shouldHaveLabelBy(com.codeborne.selenide.WebElementCondition condition, Duration... duration)
      Description copied from interface: StandardField
      Проверка соответствия метки условию
      Specified by:
      shouldHaveLabelBy in interface StandardField
      Parameters:
      condition - ожидаемое условие
    • shouldHaveLabelLocation

      public void shouldHaveLabelLocation(net.n2oapp.framework.api.metadata.meta.fieldset.FieldSet.LabelPositionEnum position)
      Description copied from interface: StandardField
      Проверка положения метки
      Specified by:
      shouldHaveLabelLocation in interface StandardField
      Parameters:
      position - ожидаемое положение метки
    • shouldHaveValidationMessage

      public void shouldHaveValidationMessage(com.codeborne.selenide.WebElementCondition condition, Duration... duration)
      Description copied from interface: StandardField
      Проверка сообщения валидации на соответствие условию
      Specified by:
      shouldHaveValidationMessage in interface StandardField
      Parameters:
      condition - ожидаемое условие
    • shouldHaveDescription

      public void shouldHaveDescription(String text)
      Description copied from interface: StandardField
      Проверка описания на соответствие
      Specified by:
      shouldHaveDescription in interface StandardField
      Parameters:
      text - ожидаемый текст описания
    • requiredLabel

      protected com.codeborne.selenide.SelenideElement requiredLabel()