Class N2oDrawer
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.drawer.N2oDrawer
Окно drawer для автотестирования
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.n2oapp.framework.autotest.api.component.drawer.Drawer
Drawer.DrawerToolbar, Drawer.Placement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidКлик по фону вне окна для закрытияvoidclose()Закрытие окна через иконку крестикаvoidЗакрытие окна через нажатия клавишу Esc<T extends Page>
TВозвращает страницу контента, лежащего внутри компонента drawerprotected com.codeborne.selenide.SelenideElementvoidПрокрутка окна в самый низvoidscrollUp()Прокрутка окна в самый верхvoidПроверка того, что нижняя часть окна зафиксированаvoidshouldHaveHeight(String height) Проверка соответствия высоты выезжаемого окнаvoidshouldHavePlacement(Drawer.Placement placement) Проверка соответствия положения окнаvoidshouldHaveTitle(String text, Duration... duration) Проверяет соответствие заголовка окнаvoidshouldHaveWidth(String width) Проверка соответствия ширины выезжаемого окнаvoidПроверка того, что нижняя часть окна не зафиксированаtoolbar()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
-
N2oDrawer
public N2oDrawer()
-
-
Method Details
-
content
Description copied from interface:DrawerВозвращает страницу контента, лежащего внутри компонента drawer -
toolbar
-
shouldHaveTitle
Description copied from interface:DrawerПроверяет соответствие заголовка окна- Specified by:
shouldHaveTitlein interfaceDrawer- Parameters:
text- ожидаемый текст заголовка
-
shouldHavePlacement
Description copied from interface:DrawerПроверка соответствия положения окна- Specified by:
shouldHavePlacementin interfaceDrawer- Parameters:
placement- ожидаемое положение окна
-
shouldHaveWidth
Description copied from interface:DrawerПроверка соответствия ширины выезжаемого окна- Specified by:
shouldHaveWidthin interfaceDrawer- Parameters:
width- ожидаемая ширина окна
-
shouldHaveHeight
Description copied from interface:DrawerПроверка соответствия высоты выезжаемого окна- Specified by:
shouldHaveHeightin interfaceDrawer- Parameters:
height- ожидаемая высота окна
-
close
public void close()Description copied from interface:DrawerЗакрытие окна через иконку крестика -
closeByEsc
public void closeByEsc()Description copied from interface:DrawerЗакрытие окна через нажатия клавишу Esc- Specified by:
closeByEscin interfaceDrawer
-
clickBackdrop
public void clickBackdrop()Description copied from interface:DrawerКлик по фону вне окна для закрытия- Specified by:
clickBackdropin interfaceDrawer
-
scrollUp
public void scrollUp()Description copied from interface:DrawerПрокрутка окна в самый верх -
scrollDown
public void scrollDown()Description copied from interface:DrawerПрокрутка окна в самый низ- Specified by:
scrollDownin interfaceDrawer
-