Interface Navigator

  • All Known Implementing Classes:
    Session

    public interface Navigator
    • Method Detail

      • stop

        default Session stop()
        This method stops window loading.
        Returns:
        this
      • back

        default Session back()
        Returns the window to the previous item in the history.
        Returns:
        this
      • forward

        default Session forward()
        Moves the window one document forward in the history
        Returns:
        this
      • reload

        default Session reload()
        This method reloads the resource from the current URL.
        Returns:
        this
      • setUserAgent

        default Session setUserAgent​(String userAgent)
        Allows overriding user agent with the given string.
        Parameters:
        userAgent - User agent to use
        Returns:
        this
      • getLocation

        default String getLocation()
        Document URL that Document points to.
        Returns:
        document location
      • getPathname

        default String getPathname()
        Retrieves Location.pathname property.
        Returns:
        an initial / followed by the path of the URL
      • getQueryString

        default Map<String,Object> getQueryString()
        Gets query string
        Returns:
        key value pair
      • getContent

        default String getContent()
        Gets the full HTML contents of the page, including the doctype.
        Returns:
        string content of the document
      • getTitle

        default String getTitle()
        Gets the title of the document.
        Returns:
        string containing the document's title
      • isDomReady

        default boolean isDomReady()
        Gets the state of Document
        Returns:
        true if Document.readyState property is complete
      • clearCache

        default boolean clearCache()
        Clears browser cache.
        Returns:
        true if browser cache cleared.
      • clearCookies

        default boolean clearCookies()
        Clears all browser cookies.
        Returns:
        true if browser cookies cleared.