Class N2oStandardField
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.field.N2oField
net.n2oapp.framework.autotest.impl.component.field.N2oStandardField
- All Implemented Interfaces:
Component,Element,Field,StandardField,Help
Стандартное поле формы для автотестирования
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Control>
TВозвращает поле ввода для редактированияprotected com.codeborne.selenide.SelenideElementvoidПроверка обязательности заполнения поляvoidshouldHaveDescription(String text) Проверка описания на соответствиеvoidshouldHaveLabelBy(com.codeborne.selenide.WebElementCondition condition, Duration... duration) Проверка соответствия метки условиюvoidshouldHaveLabelLocation(net.n2oapp.framework.api.metadata.meta.fieldset.FieldSet.LabelPosition position) Проверка положения меткиvoidshouldHaveValidationMessage(com.codeborne.selenide.WebElementCondition condition, Duration... duration) Проверка сообщения валидации на соответствие условиюvoidПроверка необязательности поляtoolbar()Methods inherited from class net.n2oapp.framework.autotest.impl.component.field.N2oField
label, shouldHaveEmptyLabel, shouldHaveLabel, shouldNotHaveLabelMethods 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.Element
element, setElementMethods inherited from interface net.n2oapp.framework.autotest.api.component.field.Field
shouldHaveEmptyLabel, shouldHaveLabel, shouldNotHaveLabelMethods inherited from interface net.n2oapp.framework.autotest.api.component.fieldset.Help
clickHelp, shouldHaveHelp
-
Constructor Details
-
N2oStandardField
public N2oStandardField()
-
-
Method Details
-
control
Description copied from interface:StandardFieldВозвращает поле ввода для редактирования- Specified by:
controlin interfaceStandardField- Parameters:
componentClass- тип возвращаемого поля- Returns:
- компонент поле ввода для автотестирования
-
toolbar
- Specified by:
toolbarin interfaceStandardField- Returns:
- компонент панель кнопок для автотестирования
-
shouldBeRequired
public void shouldBeRequired()Description copied from interface:StandardFieldПроверка обязательности заполнения поля- Specified by:
shouldBeRequiredin interfaceStandardField
-
shouldNotBeRequired
public void shouldNotBeRequired()Description copied from interface:StandardFieldПроверка необязательности поля- Specified by:
shouldNotBeRequiredin interfaceStandardField
-
shouldHaveLabelBy
public void shouldHaveLabelBy(com.codeborne.selenide.WebElementCondition condition, Duration... duration) Description copied from interface:StandardFieldПроверка соответствия метки условию- Specified by:
shouldHaveLabelByin interfaceStandardField- Parameters:
condition- ожидаемое условие
-
shouldHaveLabelLocation
public void shouldHaveLabelLocation(net.n2oapp.framework.api.metadata.meta.fieldset.FieldSet.LabelPosition position) Description copied from interface:StandardFieldПроверка положения метки- Specified by:
shouldHaveLabelLocationin interfaceStandardField- Parameters:
position- ожидаемое положение метки
-
shouldHaveValidationMessage
public void shouldHaveValidationMessage(com.codeborne.selenide.WebElementCondition condition, Duration... duration) Description copied from interface:StandardFieldПроверка сообщения валидации на соответствие условию- Specified by:
shouldHaveValidationMessagein interfaceStandardField- Parameters:
condition- ожидаемое условие
-
shouldHaveDescription
Description copied from interface:StandardFieldПроверка описания на соответствие- Specified by:
shouldHaveDescriptionin interfaceStandardField- Parameters:
text- ожидаемый текст описания
-
requiredLabel
protected com.codeborne.selenide.SelenideElement requiredLabel()
-