Interface PageStateAssert

All Known Implementing Classes:
PageAssert

public interface PageStateAssert
Interface for asserting the state of FluentPage objects.
  • Method Details

    • hasElement

      PageAssert hasElement (FluentWebElement element)
      Check if current page has given FluentWebElement present.
      Parameters:
      element - the element
      Returns:
      page assertion object
    • hasElements

      PageAssert hasElements (FluentList<? extends FluentWebElement> fluentList)
      Check if current page has at least one element of given FluentList present.
      Parameters:
      fluentList - the element list
      Returns:
      page assertion object
    • hasElementDisplayed

      PageAssert hasElementDisplayed (FluentWebElement element)
      Check if current page has given FluentWebElement displayed.
      Parameters:
      element - the element
      Returns:
      page assertion object
    • hasTitle

      PageAssert hasTitle (String title)
      Check if current page has given title.
      Parameters:
      title - the expected title
      Returns:
      page assertion object
    • hasUrl

      PageAssert hasUrl (String url)
      Check if current page has given url string.
      Parameters:
      url - the expected URL string
      Returns:
      page assertion object
    • hasPageSourceContaining

      PageAssert hasPageSourceContaining (String value)
      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 its PageUrl annotation.
      Returns:
      page assertion object
    • hasExpectedElements

      PageAssert hasExpectedElements()
      Check if current page has element defined by its FindBy, FindBys or FindAll 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 new PageAssert.
      Returns:
      page assertion object