Class N2oDropdownButton
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
net.n2oapp.framework.autotest.impl.component.button.N2oDropdownButton
- All Implemented Interfaces:
Badge,Button,DropdownButton,Component,Element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmenuItem(int index) Возвращает стандартную кнопку по индексуmenuItem(com.codeborne.selenide.WebElementCondition by) Возвращает первую стандартную кнопку, которой соответствует ожидаемому условиюВозвращает первую стандартную кнопку, метка которой соответствует ожидаемомуprotected com.codeborne.selenide.ElementsCollectionvoidПроверка того, что список кнопок скрытvoidПроверка того, что список кнопок раскрытvoidПроверка скрытости компонент на страницеvoidПроверка видимости компонент на страницеvoidshouldHaveIcon(String iconName) Проверка иконки у кнопки на соответствие ожидаемому значениюvoidshouldHaveItems(int count) Провека количества кнопокvoidshouldHaveLabel(String label, Duration... duration) Проверка точного соответствия метки (без учета регистра) у кнопкиMethods inherited from class net.n2oapp.framework.autotest.impl.component.button.N2oButton
click, hover, shouldBeDisabled, shouldBeEnabled, shouldHaveColor, tooltipMethods inherited from class net.n2oapp.framework.autotest.impl.component.N2oComponent
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.button.Button
click, hover, shouldBeDisabled, shouldBeEnabled, shouldHaveColor, tooltipMethods inherited from interface net.n2oapp.framework.autotest.api.component.Component
should, should, should, shouldExists, shouldHaveCssClass, shouldHaveStyle, shouldNotExistsMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElement
-
Constructor Details
-
N2oDropdownButton
public N2oDropdownButton()
-
-
Method Details
-
shouldHaveLabel
Description copied from interface:DropdownButtonПроверка точного соответствия метки (без учета регистра) у кнопки- Specified by:
shouldHaveLabelin interfaceDropdownButton- Parameters:
label- ожидаемое значение метки
-
shouldHaveItems
public void shouldHaveItems(int count) Description copied from interface:DropdownButtonПровека количества кнопок- Specified by:
shouldHaveItemsin interfaceDropdownButton- Parameters:
count- ожидаемое количество кнопок
-
shouldBeVisible
public void shouldBeVisible()Description copied from interface:ComponentПроверка видимости компонент на странице- Specified by:
shouldBeVisiblein interfaceComponent- Overrides:
shouldBeVisiblein classN2oComponent
-
shouldBeHidden
public void shouldBeHidden()Description copied from interface:ComponentПроверка скрытости компонент на странице- Specified by:
shouldBeHiddenin interfaceComponent- Overrides:
shouldBeHiddenin classN2oComponent
-
shouldBeExpanded
public void shouldBeExpanded()Description copied from interface:DropdownButtonПроверка того, что список кнопок раскрыт- Specified by:
shouldBeExpandedin interfaceDropdownButton
-
shouldBeCollapsed
public void shouldBeCollapsed()Description copied from interface:DropdownButtonПроверка того, что список кнопок скрыт- Specified by:
shouldBeCollapsedin interfaceDropdownButton
-
shouldHaveIcon
Description copied from interface:DropdownButtonПроверка иконки у кнопки на соответствие ожидаемому значению- Specified by:
shouldHaveIconin interfaceDropdownButton- Parameters:
iconName- ожидаемое имя иконки
-