Class N2oPaging
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.widget.N2oPaging
Компонент пагинации для автотестирования
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.n2oapp.framework.autotest.api.component.widget.Paging
Paging.LayoutEnum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.codeborne.selenide.SelenideElementvoidКлик по "Узнать кол-во записей"voidПроверка видимости кнопки запроса на количество записейvoidПроверка отсутствия видимости кнопки запроса на количество записейprotected com.codeborne.selenide.SelenideElementvoidПроверки наличия многоточия у кнопки перехода на первую страницуvoidПроверки отсутствия многоточия у кнопки перехода на первую страницуprotected com.codeborne.selenide.SelenideElementlastPage()voidПроверки наличия многоточия у кнопки перехода на последнюю страницуvoidПроверки отсутствия многоточия у кнопки перехода на последнюю страницуvoidlastShouldHavePage(String label, Duration... duration) Проверка значения кнопки перехода на последнюю страницуprotected com.codeborne.selenide.SelenideElementvoidПроверка недоступности кнопки перехода на следующую страницуvoidПроверка доступности кнопки перехода на следующую страницуvoidnextShouldHaveIcon(String icon) Проверка иконки кнопки перехода на следующую страницуvoidnextShouldHaveLabel(String label, Duration... duration) Проверка метки кнопки перехода на следующую страницуprotected com.codeborne.selenide.SelenideElementpageNumberButton(String number) voidПроверка видимости кнопки перехода на страницуvoidПроверка отсутствия видимости кнопки перехода на страницуprotected com.codeborne.selenide.SelenideElementprotected com.codeborne.selenide.SelenideElementvoidПроверка недоступности кнопки перехода на предыдущую страницуvoidПроверка доступности кнопки перехода на предыдущую страницуvoidprevShouldHaveIcon(String icon) Проверка иконки кнопки перехода на предыдущую страницуvoidprevShouldHaveLabel(String label, Duration... duration) Проверка метки кнопки перехода на предыдущую страницуvoidПереход на первую страницуvoidПереход на последнюю страницуvoidПереход на следующую страницуvoidselectPage(String number) Клик по номеру страницыvoidПереход на предыдущую страницуvoidПроверка существования компонент на страницеvoidshouldHaveActivePage(String label, Duration... duration) Проверка активной/выбранной страницыvoidПроверка наличия кнопки перехода на первую страницуvoidПроверка наличия кнопки перехода на последнюю страницуvoidПроверка наличия кнопки перехода на следующую страницуvoidshouldHavePageNumber(String number) Проверка наличия номера страницыvoidПроверка наличия кнопки перехода на предыдущую страницуvoidshouldHaveTotalElements(int count) Проверка общего числа элементов у виджетаvoidПроверка не существования пагинацииvoidПроверка отсутствия кнопки перехода на последнюю страницуvoidПроверка отсутствия кнопки перехода на следующую страницуvoidПроверка отсутствия кнопки перехода на предыдущую страницуvoidПроверка отсутствия отображения общего числа элементовintВозвращает общее количества элементов у виджетаMethods inherited from class net.n2oapp.framework.autotest.impl.component.N2oComponent
shouldBeHidden, shouldBeVisible, 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, shouldHaveCssClass, shouldHaveStyle, shouldNotExistsMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElement
-
Field Details
-
ellipsisLocator
-
pageItemLocator
-
countButtonLocator
-
pagesLocator
-
nextButtonLocator
-
prevButtonLocator
-
paginationContainer
-
totalTextLocator
-
-
Constructor Details
-
N2oPaging
public N2oPaging(com.codeborne.selenide.SelenideElement element)
-
-
Method Details
-
shouldHaveActivePage
Description copied from interface:PagingПроверка активной/выбранной страницы- Specified by:
shouldHaveActivePagein interfacePaging- Parameters:
label- ожидаемый номер выбранной страницы
-
selectPage
Description copied from interface:PagingКлик по номеру страницы- Specified by:
selectPagein interfacePaging- Parameters:
number- номер страницы
-
shouldHavePageNumber
Description copied from interface:PagingПроверка наличия номера страницы- Specified by:
shouldHavePageNumberin interfacePaging- Parameters:
number- проверяемый номер страницы
-
totalElements
public int totalElements()Description copied from interface:PagingВозвращает общее количества элементов у виджета- Specified by:
totalElementsin interfacePaging- Returns:
- Число элементов
-
shouldHaveTotalElements
public void shouldHaveTotalElements(int count) Description copied from interface:PagingПроверка общего числа элементов у виджета- Specified by:
shouldHaveTotalElementsin interfacePaging- Parameters:
count- ожидаемое количество
-
shouldNotHaveTotalElements
public void shouldNotHaveTotalElements()Description copied from interface:PagingПроверка отсутствия отображения общего числа элементов- Specified by:
shouldNotHaveTotalElementsin interfacePaging
-
shouldHavePrev
public void shouldHavePrev()Description copied from interface:PagingПроверка наличия кнопки перехода на предыдущую страницу- Specified by:
shouldHavePrevin interfacePaging
-
shouldNotHavePrev
public void shouldNotHavePrev()Description copied from interface:PagingПроверка отсутствия кнопки перехода на предыдущую страницу- Specified by:
shouldNotHavePrevin interfacePaging
-
prevButtonShouldBeEnabled
public void prevButtonShouldBeEnabled()Description copied from interface:PagingПроверка доступности кнопки перехода на предыдущую страницу- Specified by:
prevButtonShouldBeEnabledin interfacePaging
-
prevButtonShouldBeDisabled
public void prevButtonShouldBeDisabled()Description copied from interface:PagingПроверка недоступности кнопки перехода на предыдущую страницу- Specified by:
prevButtonShouldBeDisabledin interfacePaging
-
prevShouldHaveLabel
Description copied from interface:PagingПроверка метки кнопки перехода на предыдущую страницу- Specified by:
prevShouldHaveLabelin interfacePaging- Parameters:
label- ожидаемое значение метки
-
prevShouldHaveIcon
Description copied from interface:PagingПроверка иконки кнопки перехода на предыдущую страницу- Specified by:
prevShouldHaveIconin interfacePaging- Parameters:
icon- ожидаемая иконка
-
selectPrev
public void selectPrev()Description copied from interface:PagingПереход на предыдущую страницу- Specified by:
selectPrevin interfacePaging
-
shouldNotHaveNext
public void shouldNotHaveNext()Description copied from interface:PagingПроверка отсутствия кнопки перехода на следующую страницу- Specified by:
shouldNotHaveNextin interfacePaging
-
shouldHaveNext
public void shouldHaveNext()Description copied from interface:PagingПроверка наличия кнопки перехода на следующую страницу- Specified by:
shouldHaveNextin interfacePaging
-
nextShouldHaveLabel
Description copied from interface:PagingПроверка метки кнопки перехода на следующую страницу- Specified by:
nextShouldHaveLabelin interfacePaging- Parameters:
label- ожидаемое значение метки
-
nextShouldHaveIcon
Description copied from interface:PagingПроверка иконки кнопки перехода на следующую страницу- Specified by:
nextShouldHaveIconin interfacePaging- Parameters:
icon- ожидаемая иконка
-
selectNext
public void selectNext()Description copied from interface:PagingПереход на следующую страницу- Specified by:
selectNextin interfacePaging
-
nextButtonShouldBeEnabled
public void nextButtonShouldBeEnabled()Description copied from interface:PagingПроверка доступности кнопки перехода на следующую страницу- Specified by:
nextButtonShouldBeEnabledin interfacePaging
-
nextButtonShouldBeDisabled
public void nextButtonShouldBeDisabled()Description copied from interface:PagingПроверка недоступности кнопки перехода на следующую страницу- Specified by:
nextButtonShouldBeDisabledin interfacePaging
-
shouldHaveFirst
public void shouldHaveFirst()Description copied from interface:PagingПроверка наличия кнопки перехода на первую страницу- Specified by:
shouldHaveFirstin interfacePaging
-
selectFirst
public void selectFirst()Description copied from interface:PagingПереход на первую страницу- Specified by:
selectFirstin interfacePaging
-
shouldNotHaveLast
public void shouldNotHaveLast()Description copied from interface:PagingПроверка отсутствия кнопки перехода на последнюю страницу- Specified by:
shouldNotHaveLastin interfacePaging
-
shouldHaveLast
public void shouldHaveLast()Description copied from interface:PagingПроверка наличия кнопки перехода на последнюю страницу- Specified by:
shouldHaveLastin interfacePaging
-
lastShouldHavePage
Description copied from interface:PagingПроверка значения кнопки перехода на последнюю страницу- Specified by:
lastShouldHavePagein interfacePaging- Parameters:
label- ожидаемое значение кнопки
-
selectLast
public void selectLast()Description copied from interface:PagingПереход на последнюю страницу- Specified by:
selectLastin interfacePaging
-
firstPageShouldHaveEllipsis
public void firstPageShouldHaveEllipsis()Description copied from interface:PagingПроверки наличия многоточия у кнопки перехода на первую страницу- Specified by:
firstPageShouldHaveEllipsisin interfacePaging
-
firstPageShouldNotHaveEllipsis
public void firstPageShouldNotHaveEllipsis()Description copied from interface:PagingПроверки отсутствия многоточия у кнопки перехода на первую страницу- Specified by:
firstPageShouldNotHaveEllipsisin interfacePaging
-
lastPageShouldHaveEllipsis
public void lastPageShouldHaveEllipsis()Description copied from interface:PagingПроверки наличия многоточия у кнопки перехода на последнюю страницу- Specified by:
lastPageShouldHaveEllipsisin interfacePaging
-
lastPageShouldNotHaveEllipsis
public void lastPageShouldNotHaveEllipsis()Description copied from interface:PagingПроверки отсутствия многоточия у кнопки перехода на последнюю страницу- Specified by:
lastPageShouldNotHaveEllipsisin interfacePaging
-
pageNumberButtonShouldBeVisible
Description copied from interface:PagingПроверка видимости кнопки перехода на страницу- Specified by:
pageNumberButtonShouldBeVisiblein interfacePaging- Parameters:
number- ожидаемая страница
-
pageNumberButtonShouldNotBeVisible
Description copied from interface:PagingПроверка отсутствия видимости кнопки перехода на страницу- Specified by:
pageNumberButtonShouldNotBeVisiblein interfacePaging- Parameters:
number- ожидаемая страница
-
countButtonShouldBeVisible
public void countButtonShouldBeVisible()Description copied from interface:PagingПроверка видимости кнопки запроса на количество записей- Specified by:
countButtonShouldBeVisiblein interfacePaging
-
countButtonShouldNotBeVisible
public void countButtonShouldNotBeVisible()Description copied from interface:PagingПроверка отсутствия видимости кнопки запроса на количество записей- Specified by:
countButtonShouldNotBeVisiblein interfacePaging
-
countButtonClick
public void countButtonClick()Description copied from interface:PagingКлик по "Узнать кол-во записей"- Specified by:
countButtonClickin interfacePaging
-
shouldExists
public void shouldExists()Description copied from interface:ComponentПроверка существования компонент на странице- Specified by:
shouldExistsin interfaceComponent- Specified by:
shouldExistsin interfacePaging- Overrides:
shouldExistsin classN2oComponent
-
shouldNotExists
public void shouldNotExists()Description copied from interface:PagingПроверка не существования пагинации- Specified by:
shouldNotExistsin interfacePaging
-
pageNumberButton
-
paginationInfo
protected com.codeborne.selenide.SelenideElement paginationInfo() -
prevButton
protected com.codeborne.selenide.SelenideElement prevButton() -
nextButton
protected com.codeborne.selenide.SelenideElement nextButton() -
firstPage
protected com.codeborne.selenide.SelenideElement firstPage() -
lastPage
protected com.codeborne.selenide.SelenideElement lastPage() -
countButton
protected com.codeborne.selenide.SelenideElement countButton()
-