org.openqa.selenium
Interface WebDriver.Navigation

Enclosing interface:
WebDriver

public static interface WebDriver.Navigation


Method Summary
 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(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 Detail

back

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


forward

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


to

void to(String url)
Load a new web page in the current browser window. This is done using an HTTP GET 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.

Parameters:
url - The URL to load. It is best to use 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 -

refresh

void refresh()
Refresh the current page



Copyright © 2012. All Rights Reserved.