Package io.fluentlenium.assertj.custom
Class PageAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<PageAssert,
FluentPage>
io.fluentlenium.assertj.custom.PageAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<PageAssert,
,FluentPage> org.assertj.core.api.Descriptable<PageAssert>
,org.assertj.core.api.ExtensionPoints<PageAssert,
,FluentPage> PageStateAssert
public class PageAssert
extends org.assertj.core.api.AbstractAssert<PageAssert,FluentPage>
implements PageStateAssert
Default implementation for asserting
FluentPage
objects.
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
-
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.Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Constructor Details
-
PageAssert
-
-
Method Details
-
hasElement
Description copied from interface:PageStateAssert
Check if current page has given FluentWebElement present.- Specified by:
hasElement
in interfacePageStateAssert
- Parameters:
element
- the element- Returns:
- page assertion object
-
hasElements
Description copied from interface:PageStateAssert
Check if current page has at least one element of given FluentList present.- Specified by:
hasElements
in interfacePageStateAssert
- Parameters:
fluentList
- the element list- Returns:
- page assertion object
-
hasElementDisplayed
Description copied from interface:PageStateAssert
Check if current page has given FluentWebElement displayed.- Specified by:
hasElementDisplayed
in interfacePageStateAssert
- Parameters:
element
- the element- Returns:
- page assertion object
-
hasTitle
Description copied from interface:PageStateAssert
Check if current page has given title.- Specified by:
hasTitle
in interfacePageStateAssert
- Parameters:
title
- the expected title- Returns:
- page assertion object
-
hasUrl
Description copied from interface:PageStateAssert
Check if current page has given url string.- Specified by:
hasUrl
in interfacePageStateAssert
- Parameters:
url
- the expected URL string- Returns:
- page assertion object
-
hasPageSourceContaining
Description copied from interface:PageStateAssert
Check if current page has page source containing given String.- Specified by:
hasPageSourceContaining
in interfacePageStateAssert
- Parameters:
value
- the expected string value- Returns:
- page assertion object
-
hasExpectedUrl
Description copied from interface:PageStateAssert
Check if current page has url defined by itsPageUrl
annotation.- Specified by:
hasExpectedUrl
in interfacePageStateAssert
- Returns:
- page assertion object
-
hasExpectedElements
Description copied from interface:PageStateAssert
Check if current page has element defined by itsFindBy
,FindBys
orFindAll
class level annotation.- Specified by:
hasExpectedElements
in interfacePageStateAssert
- Returns:
- page assertion object
-
isAt
Deprecated.Description copied from interface:PageStateAssert
Check if it is at the current page. Call the page.isAt() methods Will be removed in future releases. Please use newPageAssert
.- Specified by:
isAt
in interfacePageStateAssert
- Returns:
- page assertion object
-