Class N2oInputSelectTree

All Implemented Interfaces:
Component, Control, InputSelectTree, Element, PopupControl

public class N2oInputSelectTree extends N2oControl implements InputSelectTree
Компонент ввода с выбором в выпадающем списке в виде дерева для автотестирования
  • Constructor Details

    • N2oInputSelectTree

      public N2oInputSelectTree()
  • Method Details

    • shouldBeEmpty

      public void shouldBeEmpty()
      Description copied from interface: Control
      Проверка пустоты поля
      Specified by:
      shouldBeEmpty in interface Control
    • 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 value)
      Description copied from interface: InputSelectTree
      Проверка соответствия текста подсказки для ввода
      Specified by:
      shouldHavePlaceholder in interface InputSelectTree
      Parameters:
      value - ожидаемый текст
    • click

      public void click()
      Description copied from interface: InputSelectTree
      Раскрытие выпадающего списка
      Specified by:
      click in interface InputSelectTree
    • expandParentOptions

      public void expandParentOptions(int parentIndex)
      Description copied from interface: InputSelectTree
      Раскрытие списка у опции
      Specified by:
      expandParentOptions in interface InputSelectTree
      Parameters:
      parentIndex - номер родительской опции
    • setFilter

      public void setFilter(String value)
      Description copied from interface: InputSelectTree
      Установка значения в поле ввода для поиска опции
      Specified by:
      setFilter in interface InputSelectTree
      Parameters:
      value - значение
    • shouldSelectedMulti

      public void shouldSelectedMulti(String[] values, Duration... duration)
      Description copied from interface: InputSelectTree
      Проверка наличия выбранных опций с ожидаемыми значениями
      Specified by:
      shouldSelectedMulti in interface InputSelectTree
      Parameters:
      values - список ожидаемых значений
    • shouldSelectedMultiSize

      public void shouldSelectedMultiSize(int size)
      Description copied from interface: InputSelectTree
      Проверка количества выбранных опций с ожидаемыми значениями
      Specified by:
      shouldSelectedMultiSize in interface InputSelectTree
    • clearSearchField

      public void clearSearchField()
      Description copied from interface: InputSelectTree
      Очищение поля поиска
      Specified by:
      clearSearchField in interface InputSelectTree
    • shouldDisplayedOptions

      public void shouldDisplayedOptions(com.codeborne.selenide.WebElementsCondition condition)
      Description copied from interface: InputSelectTree
      Проверка того, что опция отображаемые опции соответствуют условию
      Specified by:
      shouldDisplayedOptions in interface InputSelectTree
      Parameters:
      condition - проверяемое условие
    • selectOption

      public void selectOption(int index)
      Description copied from interface: InputSelectTree
      Выбор опции по номеру
      Specified by:
      selectOption in interface InputSelectTree
      Parameters:
      index - номер выбираемой опции
    • shouldBeSelected

      public void shouldBeSelected(int index, String value, Duration... duration)
      Description copied from interface: InputSelectTree
      Проверка соответствия значения у выбранной опции
      Specified by:
      shouldBeSelected in interface InputSelectTree
      Parameters:
      index - номер проверяемой опции
      value - ожидаемое значение
    • removeOption

      public void removeOption(int index)
      Description copied from interface: InputSelectTree
      Удаление выбранной опции из поля ввода
      Specified by:
      removeOption in interface InputSelectTree
      Parameters:
      index - номер удаляемой опции
    • removeAllOptions

      public void removeAllOptions()
      Description copied from interface: InputSelectTree
      Удаление всех выбранных опций
      Specified by:
      removeAllOptions in interface InputSelectTree
    • shouldBeUnselected

      public void shouldBeUnselected()
      Description copied from interface: InputSelectTree
      Проверка того, что ни одна опция не выбрана
      Specified by:
      shouldBeUnselected in interface InputSelectTree
    • openPopup

      public void openPopup()
      Description copied from interface: PopupControl
      Открытие выпадающего списка
      Specified by:
      openPopup in interface PopupControl
    • closePopup

      public void closePopup()
      Description copied from interface: PopupControl
      Закрытие выпадающего списка
      Specified by:
      closePopup in interface PopupControl
    • shouldBeOpened

      public void shouldBeOpened()
      Description copied from interface: PopupControl
      Проверка того, что выпадающий список раскрыт
      Specified by:
      shouldBeOpened in interface PopupControl
    • shouldBeClosed

      public void shouldBeClosed()
      Description copied from interface: PopupControl
      Проверка того, что выпадающий список скрыт
      Specified by:
      shouldBeClosed in interface PopupControl
    • shouldBeDisabled

      public void shouldBeDisabled()
      Description copied from interface: Control
      Проверка недоступности поля
      Specified by:
      shouldBeDisabled in interface Control
      Overrides:
      shouldBeDisabled in class N2oControl
    • switcher

      protected com.codeborne.selenide.SelenideElement switcher()
    • input

      protected com.codeborne.selenide.SelenideElement input()
    • selectedElements

      protected com.codeborne.selenide.ElementsCollection selectedElements()
    • selectedItems

      protected com.codeborne.selenide.ElementsCollection selectedItems()
    • shouldHaveDropdownMessage

      public void shouldHaveDropdownMessage(String value, Duration... duration)
      Description copied from interface: InputSelectTree
      Проверка точного соответствия текста подсказки ожидаемому значению
      Specified by:
      shouldHaveDropdownMessage in interface InputSelectTree
      Parameters:
      value - ожидаемое значение подсказки