HumHub Documentation (unofficial)

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

$dispatcher  : WebDriverDispatcher
$driver  : WebDriver

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

Methods

execute()

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
throws
WebDriverException

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
throws
WebDriverException

getWindowHandle()

Return an opaque handle to this window that uniquely identifies it within this driver instance.

public getWindowHandle() : string
Tags
throws
WebDriverException
Return values
string

getWindowHandles()

Get all window handles available to the current session.

public getWindowHandles() : array<string|int, mixed>
Tags
throws
WebDriverException
Return values
array<string|int, mixed>

takeScreenshot()

Take a screenshot of the current page.

public takeScreenshot([null|string $save_as = null ]) : string
Parameters
$save_as : null|string = null
Tags
throws
WebDriverException
Return values
string

wait()

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
throws
WebDriverException
Return values
WebDriverWait

dispatch()

protected dispatch(mixed $method, mixed ...$arguments) : mixed
Parameters
$method : mixed
$arguments : mixed

        
On this page

Search results