Class N2oInputText
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.N2oInputText
Компонент ввода текста для автотестирования
-
Field Summary
Fields inherited from class net.n2oapp.framework.autotest.impl.component.control.N2oControl
INPUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Очистка поляvoidclick()Клик по полюvoidУменьшение значения, если тип значений в поле ввода - целые числаvoidУвеличение значения, если тип значений в поле ввода - целые числаprotected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementgetValue()protected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementvoidНажатие кнопки 'enter'voidВвод значение в полеvoidПроверка пустоты поляvoidПроверка наличия единиц измеренияvoidshouldHaveMeasureText(String text, Duration... duration) Проверка соответствия единицы измеренияvoidshouldHavePlaceholder(String placeholder) Проверка соответствия текста подсказки у поля вводаvoidshouldHaveValue(String value, Duration... duration) Проверка значения в полеprotected com.codeborne.selenide.ElementsCollectionMethods inherited from class net.n2oapp.framework.autotest.impl.component.control.N2oControl
shouldBeDisabled, 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
shouldBeDisabled, shouldBeEnabledMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElement
-
Constructor Details
-
N2oInputText
public N2oInputText()
-
-
Method Details
-
shouldBeEmpty
public void shouldBeEmpty()Description copied from interface:ControlПроверка пустоты поля- Specified by:
shouldBeEmptyin interfaceControl
-
getValue
-
setValue
Description copied from interface:InputTextВвод значение в поле -
pressEnter
public void pressEnter()Description copied from interface:InputTextНажатие кнопки 'enter'- Specified by:
pressEnterin interfaceInputText
-
click
public void click()Description copied from interface:InputTextКлик по полю -
clear
public void clear()Description copied from interface:InputTextОчистка поля -
shouldHaveValue
Description copied from interface:ControlПроверка значения в поле- Specified by:
shouldHaveValuein interfaceControl- Parameters:
value- ожидаемое значение
-
shouldHavePlaceholder
Description copied from interface:InputTextПроверка соответствия текста подсказки у поля ввода- Specified by:
shouldHavePlaceholderin interfaceInputText- Parameters:
placeholder- ожидаемый текст
-
clickPlusStepButton
public void clickPlusStepButton()Description copied from interface:InputTextУвеличение значения, если тип значений в поле ввода - целые числа- Specified by:
clickPlusStepButtonin interfaceInputText
-
clickMinusStepButton
public void clickMinusStepButton()Description copied from interface:InputTextУменьшение значения, если тип значений в поле ввода - целые числа- Specified by:
clickMinusStepButtonin interfaceInputText
-
shouldHaveMeasure
public void shouldHaveMeasure()Description copied from interface:InputTextПроверка наличия единиц измерения- Specified by:
shouldHaveMeasurein interfaceInputText
-
shouldHaveMeasureText
Description copied from interface:InputTextПроверка соответствия единицы измерения- Specified by:
shouldHaveMeasureTextin interfaceInputText- 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()
-