class WebDriverNavigation (View source)

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

Note that they are all blocking functions until the page is loaded by by default. It could be overridden by 'webdriver.load.strategy' in the FirefoxProfile preferences. https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities#firefoxprofile-settings

Properties

protected $executor

Methods

__construct(ExecuteMethod $executor)

No description

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.

to(string $url)

Navigate to the given URL.

Details

__construct(ExecuteMethod $executor)

No description

Parameters

ExecuteMethod $executor

WebDriverNavigation back()

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

Return Value

WebDriverNavigation

The instance.

WebDriverNavigation forward()

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

Return Value

WebDriverNavigation

The instance.

WebDriverNavigation refresh()

Refresh the current page.

Return Value

WebDriverNavigation

The instance.

WebDriverNavigation to(string $url)

Navigate to the given URL.

Parameters

string $url

Return Value

WebDriverNavigation

The instance.