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

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

    • N2oTimePicker

      public N2oTimePicker()
  • Method Details

    • shouldBeEmpty

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

      public void selectHoursMinutesSeconds(String hours, String minutes, String seconds)
      Description copied from interface: TimePicker
      Выбор полного времени
      Specified by:
      selectHoursMinutesSeconds in interface TimePicker
      Parameters:
      hours - часы в формате 24
      minutes - минуты
      seconds - секунды
    • selectMinutesSeconds

      public void selectMinutesSeconds(String minutes, String seconds)
      Description copied from interface: TimePicker
      Выбор минут и секунд
      Specified by:
      selectMinutesSeconds in interface TimePicker
      Parameters:
      minutes - минуты
      seconds - секунды
    • selectHours

      public void selectHours(String hours)
      Description copied from interface: TimePicker
      Выбор часов
      Specified by:
      selectHours in interface TimePicker
      Parameters:
      hours - выбираемые часы
    • selectMinutes

      public void selectMinutes(String minutes)
      Description copied from interface: TimePicker
      Выбор минут
      Specified by:
      selectMinutes in interface TimePicker
      Parameters:
      minutes - выбираемые минуты
    • shouldHaveValue

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

      public void shouldSelectedHoursMinutesSeconds(String hours, String minutes, String seconds)
      Description copied from interface: TimePicker
      Проверка выбранного времени
      Specified by:
      shouldSelectedHoursMinutesSeconds in interface TimePicker
      Parameters:
      hours - ожидаемые часы
      minutes - ожидаемые минуты
      seconds - ожидаемые секунды
    • shouldSelectedHoursMinutes

      public void shouldSelectedHoursMinutes(String hours, String minutes)
      Description copied from interface: TimePicker
      Проверка выбранного времени без секунд
      Specified by:
      shouldSelectedHoursMinutes in interface TimePicker
      Parameters:
      hours - ожидаемые часы
      minutes - ожидаемые минуты
    • shouldSelectedHours

      public void shouldSelectedHours(String hours)
      Description copied from interface: TimePicker
      Проверка выбранных часов
      Specified by:
      shouldSelectedHours in interface TimePicker
      Parameters:
      hours - ожидаемые часы
    • shouldSelectedMinutes

      public void shouldSelectedMinutes(String minutes)
      Description copied from interface: TimePicker
      Проверка выбранных минут
      Specified by:
      shouldSelectedMinutes in interface TimePicker
      Parameters:
      minutes - ожидаемые минут
    • shouldHavePrefix

      public void shouldHavePrefix(String prefix)
      Description copied from interface: TimePicker
      Проверка соответствия префикса
      Specified by:
      shouldHavePrefix in interface TimePicker
      Parameters:
      prefix - ожидаемый префикс
    • shouldNotHavePrefix

      public void shouldNotHavePrefix()
      Description copied from interface: TimePicker
      Проверка отсутствия префикса
      Specified by:
      shouldNotHavePrefix in interface TimePicker
    • 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
    • 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
    • shouldBeDisabled

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

      protected com.codeborne.selenide.SelenideElement popUp()
    • prefix

      protected com.codeborne.selenide.SelenideElement prefix()
    • items

      protected com.codeborne.selenide.ElementsCollection items(String title)
    • hoursItems

      protected com.codeborne.selenide.ElementsCollection hoursItems()
    • minutesItems

      protected com.codeborne.selenide.ElementsCollection minutesItems()
    • secondsItems

      protected com.codeborne.selenide.ElementsCollection secondsItems()
    • hoursActiveItem

      protected com.codeborne.selenide.SelenideElement hoursActiveItem()
    • minutesActiveItem

      protected com.codeborne.selenide.SelenideElement minutesActiveItem()
    • secondsActiveItem

      protected com.codeborne.selenide.SelenideElement secondsActiveItem()