Class N2oTimePicker
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.control.N2oControl
net.n2oapp.framework.autotest.impl.component.control.N2oTimePicker
- All Implemented Interfaces:
Component,Control,TimePicker,Element,PopupControl
Компонент ввода времени для автотестирования
-
Field Summary
Fields inherited from class net.n2oapp.framework.autotest.impl.component.control.N2oControl
INPUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidЗакрытие выпадающего спискаprotected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.ElementsCollectionprotected com.codeborne.selenide.ElementsCollectionprotected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.ElementsCollectionvoidОткрытие выпадающего спискаprotected com.codeborne.selenide.SelenideElementpopUp()protected com.codeborne.selenide.SelenideElementprefix()protected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.ElementsCollectionvoidselectHours(String hours) Выбор часовvoidselectHoursMinutesSeconds(String hours, String minutes, String seconds) Выбор полного времениvoidselectMinutes(String minutes) Выбор минутvoidselectMinutesSeconds(String minutes, String seconds) Выбор минут и секундvoidПроверка того, что выпадающий список скрытvoidПроверка недоступности поляvoidПроверка пустоты поляvoidПроверка того, что выпадающий список раскрытvoidshouldHavePrefix(String prefix) Проверка соответствия префиксаvoidshouldHaveValue(String value, Duration... duration) Проверка значения в полеvoidПроверка отсутствия префиксаvoidshouldSelectedHours(String hours) Проверка выбранных часовvoidshouldSelectedHoursMinutes(String hours, String minutes) Проверка выбранного времени без секундvoidshouldSelectedHoursMinutesSeconds(String hours, String minutes, String seconds) Проверка выбранного времениvoidshouldSelectedMinutes(String minutes) Проверка выбранных минутMethods inherited from class net.n2oapp.framework.autotest.impl.component.control.N2oControl
shouldBeEnabledMethods inherited from class net.n2oapp.framework.autotest.impl.component.N2oComponent
shouldBeHidden, shouldBeVisible, shouldExists, shouldHaveCssClass, shouldHaveStyle, shouldNotExistsMethods inherited from class net.n2oapp.framework.autotest.impl.component.N2oElement
element, setElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.n2oapp.framework.autotest.api.component.Component
should, should, should, shouldBeHidden, shouldBeVisible, shouldExists, shouldHaveCssClass, shouldHaveStyle, shouldNotExistsMethods inherited from interface net.n2oapp.framework.autotest.api.component.control.Control
shouldBeEnabledMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElement
-
Constructor Details
-
N2oTimePicker
public N2oTimePicker()
-
-
Method Details
-
shouldBeEmpty
public void shouldBeEmpty()Description copied from interface:ControlПроверка пустоты поля- Specified by:
shouldBeEmptyin interfaceControl
-
selectHoursMinutesSeconds
Description copied from interface:TimePickerВыбор полного времени- Specified by:
selectHoursMinutesSecondsin interfaceTimePicker- Parameters:
hours- часы в формате 24minutes- минутыseconds- секунды
-
selectMinutesSeconds
Description copied from interface:TimePickerВыбор минут и секунд- Specified by:
selectMinutesSecondsin interfaceTimePicker- Parameters:
minutes- минутыseconds- секунды
-
selectHours
Description copied from interface:TimePickerВыбор часов- Specified by:
selectHoursin interfaceTimePicker- Parameters:
hours- выбираемые часы
-
selectMinutes
Description copied from interface:TimePickerВыбор минут- Specified by:
selectMinutesin interfaceTimePicker- Parameters:
minutes- выбираемые минуты
-
shouldHaveValue
Description copied from interface:ControlПроверка значения в поле- Specified by:
shouldHaveValuein interfaceControl- Parameters:
value- ожидаемое значение
-
shouldSelectedHoursMinutesSeconds
Description copied from interface:TimePickerПроверка выбранного времени- Specified by:
shouldSelectedHoursMinutesSecondsin interfaceTimePicker- Parameters:
hours- ожидаемые часыminutes- ожидаемые минутыseconds- ожидаемые секунды
-
shouldSelectedHoursMinutes
Description copied from interface:TimePickerПроверка выбранного времени без секунд- Specified by:
shouldSelectedHoursMinutesin interfaceTimePicker- Parameters:
hours- ожидаемые часыminutes- ожидаемые минуты
-
shouldSelectedHours
Description copied from interface:TimePickerПроверка выбранных часов- Specified by:
shouldSelectedHoursin interfaceTimePicker- Parameters:
hours- ожидаемые часы
-
shouldSelectedMinutes
Description copied from interface:TimePickerПроверка выбранных минут- Specified by:
shouldSelectedMinutesin interfaceTimePicker- Parameters:
minutes- ожидаемые минут
-
shouldHavePrefix
Description copied from interface:TimePickerПроверка соответствия префикса- Specified by:
shouldHavePrefixin interfaceTimePicker- Parameters:
prefix- ожидаемый префикс
-
shouldNotHavePrefix
public void shouldNotHavePrefix()Description copied from interface:TimePickerПроверка отсутствия префикса- Specified by:
shouldNotHavePrefixin interfaceTimePicker
-
shouldBeOpened
public void shouldBeOpened()Description copied from interface:PopupControlПроверка того, что выпадающий список раскрыт- Specified by:
shouldBeOpenedin interfacePopupControl
-
shouldBeClosed
public void shouldBeClosed()Description copied from interface:PopupControlПроверка того, что выпадающий список скрыт- Specified by:
shouldBeClosedin interfacePopupControl
-
openPopup
public void openPopup()Description copied from interface:PopupControlОткрытие выпадающего списка- Specified by:
openPopupin interfacePopupControl
-
closePopup
public void closePopup()Description copied from interface:PopupControlЗакрытие выпадающего списка- Specified by:
closePopupin interfacePopupControl
-
shouldBeDisabled
public void shouldBeDisabled()Description copied from interface:ControlПроверка недоступности поля- Specified by:
shouldBeDisabledin interfaceControl- Overrides:
shouldBeDisabledin classN2oControl
-
popUp
protected com.codeborne.selenide.SelenideElement popUp() -
prefix
protected com.codeborne.selenide.SelenideElement prefix() -
items
-
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()
-