interface WebDriverNavigationInterface (View source)

An abstraction allowing the driver to access the browser's history and to navigate to a given URL.

Methods

back()

Move back a single entry in the browser's history, if possible.

forward()

Move forward a single entry in the browser's history, if possible.

refresh()

Refresh the current page This is equivalent to pressing the refresh button in the browser.

to(string $url)

Navigate to the given URL

Details

WebDriverNavigationInterface back()

Move back a single entry in the browser's history, if possible.

This is equivalent to pressing the back button in the browser or invoking window.history.back.

WebDriverNavigationInterface forward()

Move forward a single entry in the browser's history, if possible.

This is equivalent to pressing the forward button in the browser or invoking window.history.back.

WebDriverNavigationInterface refresh()

Refresh the current page This is equivalent to pressing the refresh button in the browser.

WebDriverNavigationInterface to(string $url)

Navigate to the given URL

Parameters

string $url

Return Value

WebDriverNavigationInterface

See also

WebDriver::get