WebDriverNavigation
in package
implements
WebDriverNavigationInterface
Table of Contents
Interfaces
- WebDriverNavigationInterface
- An abstraction allowing the driver to access the browser's history and to navigate to a given URL.
Properties
- $executor : mixed
Methods
- __construct() : mixed
- back() : self
- Move back a single entry in the browser's history, if possible.
- forward() : self
- Move forward a single entry in the browser's history, if possible.
- refresh() : self
- Refresh the current page This is equivalent to pressing the refresh button in the browser.
- to() : self
- Navigate to the given URL
Properties
$executor
protected
mixed
$executor
Methods
__construct()
public
__construct(ExecuteMethod $executor) : mixed
Parameters
- $executor : ExecuteMethod
back()
Move back a single entry in the browser's history, if possible.
public
back() : self
This is equivalent to pressing the back button in the browser or invoking window.history.back.
Return values
selfforward()
Move forward a single entry in the browser's history, if possible.
public
forward() : self
This is equivalent to pressing the forward button in the browser or invoking window.history.back.
Return values
selfrefresh()
Refresh the current page This is equivalent to pressing the refresh button in the browser.
public
refresh() : self
Return values
selfto()
Navigate to the given URL
public
to(mixed $url) : self
Parameters
- $url : mixed