Class N2oDropDown
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.N2oDropDown
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.n2oapp.framework.autotest.api.component.DropDown
DropDown.DropDownItem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionitem(int index) Возвращает элемент из выпадающего списка по номеруВозвращает элемент из выпадающего списка по меткеvoidПрокрутка выпадающего списка внизvoidselectItem(int index) Выбор элемента из выпадающего списка по номеруvoidselectItemBy(com.codeborne.selenide.WebElementCondition by) Выбор элемента из выпадающего списка по условиюvoidselectMulti(int... indexes) Множественный выбор элементов из выпадающего списка по номерамvoidshouldBeChecked(int... indexes) Множественная проверка выбранности элементов из выпадающего спискаvoidshouldHaveOptions(int size) Проверка количества элементов в выпадающем спискеvoidshouldHaveOptions(String[] options, Duration... duration) Проверка наличие всех элементов в выпадающего списка по меткеvoidshouldNotBeChecked(int... indexes) Множественная проверка невыбранности элементов из выпадающего списка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.Component
should, should, should, shouldBeHidden, shouldBeVisible, shouldExists, shouldHaveCssClass, shouldHaveStyle, shouldNotExistsMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElement
-
Constructor Details
-
N2oDropDown
public N2oDropDown()
-
-
Method Details
-
item
Description copied from interface:DropDownВозвращает элемент из выпадающего списка по номеру -
item
Description copied from interface:DropDownВозвращает элемент из выпадающего списка по метке -
shouldHaveOptions
Description copied from interface:DropDownПроверка наличие всех элементов в выпадающего списка по метке- Specified by:
shouldHaveOptionsin interfaceDropDown- Parameters:
options- список меток элементов
-
selectItem
public void selectItem(int index) Description copied from interface:DropDownВыбор элемента из выпадающего списка по номеру- Specified by:
selectItemin interfaceDropDown- Parameters:
index- номер элемента
-
selectItemBy
public void selectItemBy(com.codeborne.selenide.WebElementCondition by) Description copied from interface:DropDownВыбор элемента из выпадающего списка по условию- Specified by:
selectItemByin interfaceDropDown- Parameters:
by- условие выбора
-
selectMulti
public void selectMulti(int... indexes) Description copied from interface:DropDownМножественный выбор элементов из выпадающего списка по номерам- Specified by:
selectMultiin interfaceDropDown- Parameters:
indexes- массив номеров
-
shouldBeChecked
public void shouldBeChecked(int... indexes) Description copied from interface:DropDownМножественная проверка выбранности элементов из выпадающего списка- Specified by:
shouldBeCheckedin interfaceDropDown- Parameters:
indexes- массив номеров
-
shouldNotBeChecked
public void shouldNotBeChecked(int... indexes) Description copied from interface:DropDownМножественная проверка невыбранности элементов из выпадающего списка- Specified by:
shouldNotBeCheckedin interfaceDropDown- Parameters:
indexes- массив номеров
-
shouldHaveOptions
public void shouldHaveOptions(int size) Description copied from interface:DropDownПроверка количества элементов в выпадающем списке- Specified by:
shouldHaveOptionsin interfaceDropDown- Parameters:
size- ожидаемое количество
-
scrollDown
public void scrollDown()Description copied from interface:DropDownПрокрутка выпадающего списка вниз- Specified by:
scrollDownin interfaceDropDown
-