Class N2oButtonField
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.N2oButtonField
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbadgeShouldHavePosition(BadgePosition position) Проверка соответствия позиции бейджа ожидаемой позицииprotected com.codeborne.selenide.SelenideElementbtn()voidclick()Клик по кнопкеvoidhover()Наведение мыши на кнопкуvoidПроверка на не доступность клика по кнопкеvoidПроверка на доступность клика по кнопкеvoidПроверка круглой формы кнопкиvoidshouldHaveColor(Colors color) Проверка цвета кнопки на соответствие ожидаемому значениюvoidshouldHaveIcon(String iconName) Проверка класса иконки у кнопки на соответствие ожидаемому значениюvoidshouldHaveStyle(String style) Проверка стиля компонент на соответствиеvoidПроверка не круглой формы кнопкиtooltip()voidtooltipShouldHavePosition(String position) Проверка соответствия позиции подсказки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, 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.badge.Badge
badgeShouldExists, badgeShouldHaveColor, badgeShouldHaveImage, badgeShouldHaveImagePosition, badgeShouldHaveImageShape, badgeShouldHaveShape, badgeShouldHaveText, badgeShouldNotExists, badgeShouldNotHaveTextMethods inherited from interface net.n2oapp.framework.autotest.api.component.Component
should, should, should, shouldBeHidden, shouldBeVisible, shouldExists, shouldHaveCssClass, 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
-
N2oButtonField
public N2oButtonField()
-
-
Method Details
-
click
public void click()Description copied from interface:ButtonКлик по кнопке -
shouldBeEnabled
public void shouldBeEnabled()Description copied from interface:ButtonПроверка на доступность клика по кнопке- Specified by:
shouldBeEnabledin interfaceButton
-
shouldBeDisabled
public void shouldBeDisabled()Description copied from interface:ButtonПроверка на не доступность клика по кнопке- Specified by:
shouldBeDisabledin interfaceButton
-
btn
protected com.codeborne.selenide.SelenideElement btn() -
shouldHaveIcon
Description copied from interface:ButtonFieldПроверка класса иконки у кнопки на соответствие ожидаемому значению- Specified by:
shouldHaveIconin interfaceButtonField- Parameters:
iconName- ожидаемый класс иконки
-
shouldHaveColor
Description copied from interface:ButtonПроверка цвета кнопки на соответствие ожидаемому значению- Specified by:
shouldHaveColorin interfaceButton- Parameters:
color- ожидаемый цвет кнопки
-
shouldBeRounded
public void shouldBeRounded()Description copied from interface:ButtonFieldПроверка круглой формы кнопки- Specified by:
shouldBeRoundedin interfaceButtonField
-
shouldNotBeRounded
public void shouldNotBeRounded()Description copied from interface:ButtonFieldПроверка не круглой формы кнопки- Specified by:
shouldNotBeRoundedin interfaceButtonField
-
shouldHaveStyle
Description copied from interface:ComponentПроверка стиля компонент на соответствие- Specified by:
shouldHaveStylein interfaceComponent- Overrides:
shouldHaveStylein classN2oComponent- Parameters:
style- ожидаемый стиль компонент
-
hover
public void hover()Description copied from interface:ButtonНаведение мыши на кнопку -
tooltip
-
tooltipShouldHavePosition
Description copied from interface:ButtonFieldПроверка соответствия позиции подсказки- Specified by:
tooltipShouldHavePositionin interfaceButtonField- Parameters:
position- ожидаемая позиция подсказки
-
badgeShouldHavePosition
Description copied from interface:ButtonFieldПроверка соответствия позиции бейджа ожидаемой позиции- Specified by:
badgeShouldHavePositionin interfaceBadge- Specified by:
badgeShouldHavePositionin interfaceButtonField- Parameters:
position- ожидаемая позиция бейджа
-