EventFiringWebDriver
in package
implements
WebDriver, JavaScriptExecutor
Table of Contents
Interfaces
- WebDriver
- The interface for WebDriver.
- JavaScriptExecutor
- WebDriver interface implemented by drivers that support JavaScript.
Properties
Methods
- __construct() : mixed
- close() : $this
- Close the current window.
- execute() : mixed
- executeAsyncScript() : mixed
- Inject a snippet of JavaScript into the page for asynchronous execution in the context of the currently selected frame.
- executeScript() : mixed
- Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be synchronous and the result of evaluating the script will be returned.
- findElement() : EventFiringWebElement
- Find the first WebDriverElement within this element using the given mechanism.
- findElements() : array<string|int, mixed>
- Find all WebDriverElements within this element using the given mechanism.
- get() : $this
- Load a new web page in the current browser window.
- getCurrentURL() : string
- Get a string representing the current URL that the browser is looking at.
- getDispatcher() : WebDriverDispatcher
- getPageSource() : string
- Get the source of the last loaded page.
- getTitle() : string
- Get the title of the current page.
- getTouch() : WebDriverTouchScreen
- getWebDriver() : WebDriver
- getWindowHandle() : string
- Return an opaque handle to this window that uniquely identifies it within this driver instance.
- getWindowHandles() : array<string|int, mixed>
- Get all window handles available to the current session.
- manage() : WebDriverOptions
- An abstraction for managing stuff you would do in a browser menu. For example, adding and deleting cookies.
- navigate() : EventFiringWebDriverNavigation
- An abstraction allowing the driver to access the browser's history and to navigate to a given URL.
- quit() : mixed
- Quits this driver, closing every associated window.
- switchTo() : WebDriverTargetLocator
- Switch to a different window or frame.
- takeScreenshot() : string
- Take a screenshot of the current page.
- wait() : WebDriverWait
- Construct a new WebDriverWait by the current WebDriver instance.
- dispatch() : mixed
- dispatchOnException() : mixed
- newElement() : EventFiringWebElement
Properties
$dispatcher
protected
WebDriverDispatcher
$dispatcher
$driver
protected
WebDriver
$driver
Methods
__construct()
public
__construct(WebDriver $driver[, WebDriverDispatcher $dispatcher = null ]) : mixed
Parameters
- $driver : WebDriver
- $dispatcher : WebDriverDispatcher = null
close()
Close the current window.
public
close() : $this
Tags
Return values
$thisexecute()
public
execute(mixed $name, mixed $params) : mixed
Parameters
- $name : mixed
- $params : mixed
executeAsyncScript()
Inject a snippet of JavaScript into the page for asynchronous execution in the context of the currently selected frame.
public
executeAsyncScript(string $script[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
- $script : string
- $arguments : array<string|int, mixed> = []
-
The arguments of the script.
Tags
executeScript()
Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be synchronous and the result of evaluating the script will be returned.
public
executeScript(string $script[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
- $script : string
- $arguments : array<string|int, mixed> = []
-
The arguments of the script.
Tags
findElement()
Find the first WebDriverElement within this element using the given mechanism.
public
findElement(WebDriverBy $by) : EventFiringWebElement
Parameters
- $by : WebDriverBy
Tags
Return values
EventFiringWebElementfindElements()
Find all WebDriverElements within this element using the given mechanism.
public
findElements(WebDriverBy $by) : array<string|int, mixed>
Parameters
- $by : WebDriverBy
Tags
Return values
array<string|int, mixed>get()
Load a new web page in the current browser window.
public
get(mixed $url) : $this
Parameters
- $url : mixed
Tags
Return values
$thisgetCurrentURL()
Get a string representing the current URL that the browser is looking at.
public
getCurrentURL() : string
Tags
Return values
stringgetDispatcher()
public
getDispatcher() : WebDriverDispatcher
Return values
WebDriverDispatchergetPageSource()
Get the source of the last loaded page.
public
getPageSource() : string
Tags
Return values
stringgetTitle()
Get the title of the current page.
public
getTitle() : string
Tags
Return values
stringgetTouch()
public
getTouch() : WebDriverTouchScreen
Tags
Return values
WebDriverTouchScreengetWebDriver()
public
getWebDriver() : WebDriver
Return values
WebDrivergetWindowHandle()
Return an opaque handle to this window that uniquely identifies it within this driver instance.
public
getWindowHandle() : string
Tags
Return values
stringgetWindowHandles()
Get all window handles available to the current session.
public
getWindowHandles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>manage()
An abstraction for managing stuff you would do in a browser menu. For example, adding and deleting cookies.
public
manage() : WebDriverOptions
Tags
Return values
WebDriverOptionsnavigate()
An abstraction allowing the driver to access the browser's history and to navigate to a given URL.
public
navigate() : EventFiringWebDriverNavigation
Tags
Return values
EventFiringWebDriverNavigationquit()
Quits this driver, closing every associated window.
public
quit() : mixed
Tags
switchTo()
Switch to a different window or frame.
public
switchTo() : WebDriverTargetLocator
Tags
Return values
WebDriverTargetLocatortakeScreenshot()
Take a screenshot of the current page.
public
takeScreenshot([null|string $save_as = null ]) : string
Parameters
- $save_as : null|string = null
Tags
Return values
stringwait()
Construct a new WebDriverWait by the current WebDriver instance.
public
wait([int $timeout_in_second = 30 ][, int $interval_in_millisecond = 250 ]) : WebDriverWait
Parameters
- $timeout_in_second : int = 30
- $interval_in_millisecond : int = 250
Tags
Return values
WebDriverWaitdispatch()
protected
dispatch(mixed $method, mixed ...$arguments) : mixed
Parameters
- $method : mixed
- $arguments : mixed
dispatchOnException()
protected
dispatchOnException(WebDriverException $exception) : mixed
Parameters
- $exception : WebDriverException
newElement()
protected
newElement(WebDriverElement $element) : EventFiringWebElement
Parameters
- $element : WebDriverElement