Package io.fluentlenium.assertj.custom
Interface PageStateAssert
- All Known Implementing Classes:
PageAssert
public interface PageStateAssert
Interface for asserting the state of
FluentPage
objects.
-
Method Summary
Modifier and TypeMethodDescriptionhasElement
(FluentWebElement element) Check if current page has given FluentWebElement present.hasElementDisplayed
(FluentWebElement element) Check if current page has given FluentWebElement displayed.hasElements
(FluentList<? extends FluentWebElement> fluentList) Check if current page has at least one element of given FluentList present.Check if current page has element defined by itsFindBy
,FindBys
orFindAll
class level annotation.Check if current page has url defined by itsPageUrl
annotation.hasPageSourceContaining
(String value) Check if current page has page source containing given String.Check if current page has given title.Check if current page has given url string.isAt()
Deprecated.
-
Method Details
-
hasElement
Check if current page has given FluentWebElement present.- Parameters:
element
- the element- Returns:
- page assertion object
-
hasElements
Check if current page has at least one element of given FluentList present.- Parameters:
fluentList
- the element list- Returns:
- page assertion object
-
hasElementDisplayed
Check if current page has given FluentWebElement displayed.- Parameters:
element
- the element- Returns:
- page assertion object
-
hasTitle
Check if current page has given title.- Parameters:
title
- the expected title- Returns:
- page assertion object
-
hasUrl
Check if current page has given url string.- Parameters:
url
- the expected URL string- Returns:
- page assertion object
-
hasPageSourceContaining
Check if current page has page source containing given String.- Parameters:
value
- the expected string value- Returns:
- page assertion object
-
hasExpectedUrl
PageAssert hasExpectedUrl()Check if current page has url defined by itsPageUrl
annotation.- Returns:
- page assertion object
-
hasExpectedElements
PageAssert hasExpectedElements()Check if current page has element defined by itsFindBy
,FindBys
orFindAll
class level annotation.- Returns:
- page assertion object
-
isAt
Deprecated.Check if it is at the current page. Call the page.isAt() methods Will be removed in future releases. Please use newPageAssert
.- Returns:
- page assertion object
-