Class N2oButton
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.button.N2oButton
- Direct Known Subclasses:
N2oDropdownButton,N2oStandardButton
Кнопка для автотестирования
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclick()Клик по кнопкеvoidhover()Наведение мыши на кнопкуvoidПроверка на не доступность клика по кнопкеvoidПроверка на доступность клика по кнопкеvoidshouldHaveColor(ColorsEnum color) Проверка цвета кнопки на соответствие ожидаемому значениюtooltip()Methods 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.badge.Badge
badgeShouldExists, badgeShouldHaveColor, badgeShouldHaveImage, badgeShouldHaveImagePosition, badgeShouldHaveImageShape, badgeShouldHavePosition, badgeShouldHaveShape, badgeShouldHaveText, badgeShouldNotExists, badgeShouldNotHaveTextMethods 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, setElement
-
Constructor Details
-
N2oButton
public N2oButton()
-
-
Method Details
-
shouldBeDisabled
public void shouldBeDisabled()Description copied from interface:ButtonПроверка на не доступность клика по кнопке- Specified by:
shouldBeDisabledin interfaceButton
-
shouldBeEnabled
public void shouldBeEnabled()Description copied from interface:ButtonПроверка на доступность клика по кнопке- Specified by:
shouldBeEnabledin interfaceButton
-
click
public void click()Description copied from interface:ButtonКлик по кнопке -
hover
public void hover()Description copied from interface:ButtonНаведение мыши на кнопку -
tooltip
-
shouldHaveColor
Description copied from interface:ButtonПроверка цвета кнопки на соответствие ожидаемому значению- Specified by:
shouldHaveColorin interfaceButton- Parameters:
color- ожидаемый цвет кнопки
-