Class N2oPage
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
- Direct Known Subclasses:
N2oLeftRightPage,N2oSimplePage,N2oStandardPage,N2oTopLeftRightPage
Страница для автотестирования
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic classclassclassstatic classNested classes/interfaces inherited from interface net.n2oapp.framework.autotest.api.component.page.Page
Page.Breadcrumb, Page.Dialog, Page.Overlay, Page.PageToolbar, Page.Popover -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalerts(Alert.Placement placement) Возвращает компонент оповещение, положение которого совпадает с ожидаемымprotected com.codeborne.selenide.SelenideElementbody()Возвращает компонент диалог, заголовок которого совпадает с ожидаемымfooter()header()overlay()Возвращает компонент поповер, заголовок которого совпадает с ожидаемымvoidПрокрутка страницы в самый низvoidscrollUp()Прокрутка страницы в самый верхvoidshouldHaveCssClass(String classname) Проверка наличия css класса у компонентvoidshouldHaveError(int statusCode) Проверка http-ошибки на страницеvoidshouldHaveLayout(net.n2oapp.framework.api.metadata.application.NavigationLayout layout) Проверка макета на соответствиеvoidshouldHaveStyle(String style) Проверка стиля компонент на соответствиеvoidshouldHaveTitle(String title, Duration... duration) Проверка заголовка на соответствиеvoidshouldHaveUrlMatches(String regex) Проверка совпадения части ссылки страницыsidebar()toolbar()Methods inherited from class net.n2oapp.framework.autotest.impl.component.N2oComponent
shouldBeHidden, shouldBeVisible, shouldExists, 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, shouldNotExistsMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElement
-
Constructor Details
-
N2oPage
public N2oPage()
-
-
Method Details
-
header
-
sidebar
-
toolbar
-
breadcrumb
- Specified by:
breadcrumbin interfacePage- Returns:
- Компонент хлебные крошки для автотестирования
-
overlay
-
dialog
Description copied from interface:PageВозвращает компонент диалог, заголовок которого совпадает с ожидаемым -
popover
Description copied from interface:PageВозвращает компонент поповер, заголовок которого совпадает с ожидаемым -
alerts
Description copied from interface:PageВозвращает компонент оповещение, положение которого совпадает с ожидаемым -
shouldHaveUrlMatches
Description copied from interface:PageПроверка совпадения части ссылки страницы- Specified by:
shouldHaveUrlMatchesin interfacePage- Parameters:
regex- часть ссылки в виде регулярного выражения
-
shouldHaveTitle
Description copied from interface:PageПроверка заголовка на соответствие- Specified by:
shouldHaveTitlein interfacePage- Parameters:
title- ожидаемый заголовок страницы
-
scrollUp
public void scrollUp()Description copied from interface:PageПрокрутка страницы в самый верх -
scrollDown
public void scrollDown()Description copied from interface:PageПрокрутка страницы в самый низ- Specified by:
scrollDownin interfacePage
-
shouldHaveCssClass
Description copied from interface:ComponentПроверка наличия css класса у компонент- Specified by:
shouldHaveCssClassin interfaceComponent- Overrides:
shouldHaveCssClassin classN2oComponent- Parameters:
classname- ожидаемый css класс
-
shouldHaveStyle
Description copied from interface:ComponentПроверка стиля компонент на соответствие- Specified by:
shouldHaveStylein interfaceComponent- Overrides:
shouldHaveStylein classN2oComponent- Parameters:
style- ожидаемый стиль компонент
-
shouldHaveError
public void shouldHaveError(int statusCode) Description copied from interface:PageПроверка http-ошибки на странице- Specified by:
shouldHaveErrorin interfacePage- Parameters:
statusCode- ожидаемая ошибка
-
body
protected com.codeborne.selenide.SelenideElement body()
-