EventFiringWebDriverNavigation
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
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.
- getDispatcher() : WebDriverDispatcher
- getNavigator() : WebDriverNavigationInterface
- refresh() : self
- Refresh the current page This is equivalent to pressing the refresh button in the browser.
- to() : self
- Navigate to the given URL
- dispatch() : mixed
- dispatchOnException() : mixed
Properties
$dispatcher
protected
WebDriverDispatcher
$dispatcher
$navigator
protected
WebDriverNavigationInterface
$navigator
Methods
__construct()
public
__construct(WebDriverNavigationInterface $navigator, WebDriverDispatcher $dispatcher) : mixed
Parameters
- $navigator : WebDriverNavigationInterface
- $dispatcher : WebDriverDispatcher
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
selfgetDispatcher()
public
getDispatcher() : WebDriverDispatcher
Return values
WebDriverDispatchergetNavigator()
public
getNavigator() : WebDriverNavigationInterface
Return values
WebDriverNavigationInterfacerefresh()
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
Return values
selfdispatch()
protected
dispatch(mixed $method, mixed ...$arguments) : mixed
Parameters
- $method : mixed
- $arguments : mixed
dispatchOnException()
protected
dispatchOnException(WebDriverException $exception) : mixed
Parameters
- $exception : WebDriverException