Class N2oPage.N2oDialog
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.page.N2oPage.N2oDialog
- All Implemented Interfaces:
Component,Element,Page.Dialog
- Enclosing class:
- N2oPage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbutton(int index) Возвращает стандартную кнопку диалога, соответствующую ожидаемому индексуВозвращает стандартную кнопку диалога, соответствующую ожидаемому заголовкуvoidshouldBeClosed(long timeOut) Проверка закрытия диалога в течение передаваемого времениvoidПроверка того, что кнопки имеют обратное положениеvoidshouldHaveText(String text, Duration... duration) Проверка заголовка диалога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, shouldMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElementMethods inherited from interface net.n2oapp.framework.autotest.api.component.page.Page.Dialog
shouldBeVisible
-
Constructor Details
-
N2oDialog
public N2oDialog(com.codeborne.selenide.SelenideElement element)
-
-
Method Details
-
shouldHaveText
Description copied from interface:Page.DialogПроверка заголовка диалога- Specified by:
shouldHaveTextin interfacePage.Dialog- Parameters:
text- ожидаемый заголовок
-
button
Description copied from interface:Page.DialogВозвращает стандартную кнопку диалога, соответствующую ожидаемому заголовку- Specified by:
buttonin interfacePage.Dialog- Parameters:
label- ожидаемый заголовок- Returns:
- Кнопка для автотестирования
-
button
Description copied from interface:Page.DialogВозвращает стандартную кнопку диалога, соответствующую ожидаемому индексу- Specified by:
buttonin interfacePage.Dialog- Parameters:
index- индекс кнопки- Returns:
- Кнопка для автотестирования
-
shouldBeClosed
public void shouldBeClosed(long timeOut) Description copied from interface:Page.DialogПроверка закрытия диалога в течение передаваемого времени- Specified by:
shouldBeClosedin interfacePage.Dialog- Parameters:
timeOut- длительность проверки
-
shouldHaveReversedButtons
public void shouldHaveReversedButtons()Description copied from interface:Page.DialogПроверка того, что кнопки имеют обратное положение- Specified by:
shouldHaveReversedButtonsin interfacePage.Dialog
-