Interface WebDriver.Navigation

Enclosing interface:
WebDriver

public static interface WebDriver.Navigation
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Move back a single "item" in the browser's history.
    void
    Move a single "item" forward in the browser's history.
    void
    Refresh the current page
    void
    to(String url)
    Load a new web page in the current browser window.
    void
    to(URL url)
    Overloaded version of to(String) that makes it easy to pass in a URL.
  • Method Details

    • back

      void back()
      Move back a single "item" in the browser's history.

      See W3C WebDriver specification for more details.

    • 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(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(URL url)
      Overloaded version of to(String) that makes it easy to pass in a URL.
      Parameters:
      url - URL
    • refresh

      void refresh()
      Refresh the current page

      See W3C WebDriver specification for more details.