Interface WebDriver.Navigation

  • Enclosing interface:
    WebDriver

    public static interface WebDriver.Navigation
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void back()
      Move back a single "item" in the browser's history.
      void forward()
      Move a single "item" forward in the browser's history.
      void refresh()
      Refresh the current page
      void to​(java.lang.String url)
      Load a new web page in the current browser window.
      void to​(java.net.URL url)
      Overloaded version of to(String) that makes it easy to pass in a URL.
    • Method Detail

      • forward

        void forward()
        Move a single "item" forward in the browser's history. Does nothing if we are on the latest page viewed.

        See W3C WebDriver specification for more details.

      • to

        void to​(java.lang.String url)
        Load a new web page in the current browser window. This is done using an HTTP POST operation, and the method will block until the load is complete. This will follow redirects issued either by the server or as a meta-redirect from within the returned HTML. Should a meta-redirect "rest" for any duration of time, it is best to wait until this timeout is over, since should the underlying page change whilst your test is executing the results of future calls against this interface will be against the freshly loaded page.

        See W3C WebDriver specification for more details.

        Parameters:
        url - The URL to load. Must be a fully qualified URL
      • to

        void to​(java.net.URL url)
        Overloaded version of to(String) that makes it easy to pass in a URL.
        Parameters:
        url - URL