All Implemented Interfaces:
Component, Control, InputText, Element

public class N2oInputText extends N2oControl implements InputText
Компонент ввода текста для автотестирования
  • Constructor Details

    • N2oInputText

      public N2oInputText()
  • Method Details

    • shouldBeEmpty

      public void shouldBeEmpty()
      Description copied from interface: Control
      Проверка пустоты поля
      Specified by:
      shouldBeEmpty in interface Control
    • getValue

      public String getValue()
      Specified by:
      getValue in interface InputText
      Returns:
      Значение из поля ввода
    • setValue

      public void setValue(String value)
      Description copied from interface: InputText
      Ввод значение в поле
      Specified by:
      setValue in interface InputText
      Parameters:
      value - вводимое значение
    • pressEnter

      public void pressEnter()
      Description copied from interface: InputText
      Нажатие кнопки 'enter'
      Specified by:
      pressEnter in interface InputText
    • click

      public void click()
      Description copied from interface: InputText
      Клик по полю
      Specified by:
      click in interface InputText
    • clear

      public void clear()
      Description copied from interface: InputText
      Очистка поля
      Specified by:
      clear in interface InputText
    • shouldHaveValue

      public void shouldHaveValue(String value, Duration... duration)
      Description copied from interface: Control
      Проверка значения в поле
      Specified by:
      shouldHaveValue in interface Control
      Parameters:
      value - ожидаемое значение
    • shouldHavePlaceholder

      public void shouldHavePlaceholder(String placeholder)
      Description copied from interface: InputText
      Проверка соответствия текста подсказки у поля ввода
      Specified by:
      shouldHavePlaceholder in interface InputText
      Parameters:
      placeholder - ожидаемый текст
    • clickPlusStepButton

      public void clickPlusStepButton()
      Description copied from interface: InputText
      Увеличение значения, если тип значений в поле ввода - целые числа
      Specified by:
      clickPlusStepButton in interface InputText
    • clickMinusStepButton

      public void clickMinusStepButton()
      Description copied from interface: InputText
      Уменьшение значения, если тип значений в поле ввода - целые числа
      Specified by:
      clickMinusStepButton in interface InputText
    • shouldHaveMeasure

      public void shouldHaveMeasure()
      Description copied from interface: InputText
      Проверка наличия единиц измерения
      Specified by:
      shouldHaveMeasure in interface InputText
    • shouldHaveMeasureText

      public void shouldHaveMeasureText(String text, Duration... duration)
      Description copied from interface: InputText
      Проверка соответствия единицы измерения
      Specified by:
      shouldHaveMeasureText in interface InputText
      Parameters:
      text - ожидаемая единица измерения
    • stepButton

      protected com.codeborne.selenide.ElementsCollection stepButton()
    • inputElement

      protected com.codeborne.selenide.SelenideElement inputElement()
    • editCellInputElement

      protected com.codeborne.selenide.SelenideElement editCellInputElement()
    • editCellElement

      protected com.codeborne.selenide.SelenideElement editCellElement()
    • inputMeasure

      protected com.codeborne.selenide.SelenideElement inputMeasure()