class EventFiringWebDriver implements WebDriver, JavaScriptExecutor (View source)

Properties

protected WebDriver $driver
protected WebDriverDispatcher $dispatcher

Methods

__construct(WebDriver $driver, WebDriverDispatcher $dispatcher = null)

No description

getWebDriver()

No description

get(string $url)

No description

findElements(WebDriverBy $by)

No description

mixed
executeScript(string $script, array $arguments = [])

No description

mixed
executeAsyncScript(string $script, array $arguments = [])

No description

close()

No description

string
getCurrentURL()

No description

string
getPageSource()

No description

string
getTitle()

No description

string
getWindowHandle()

No description

array
getWindowHandles()

No description

quit()

No description

string
takeScreenshot(string $save_as = null)

No description

wait(int $timeout_in_second = 30, int $interval_in_millisecond = 250)

No description

manage()

No description

switchTo()

No description

getTouch()

No description

mixed
execute(string $name, array $params)

No description

dispatch(mixed $method, mixed ...$arguments)

No description

dispatchOnException(WebDriverException $exception)

No description

Details

__construct(WebDriver $driver, WebDriverDispatcher $dispatcher = null)

No description

Parameters

WebDriver $driver
WebDriverDispatcher $dispatcher

WebDriverDispatcher getDispatcher()

No description

Return Value

WebDriverDispatcher

WebDriver getWebDriver()

No description

Return Value

WebDriver

WebDriver get(string $url)

No description

Parameters

string $url

Return Value

WebDriver

The current instance.

Exceptions

WebDriverException

WebDriverElement[] findElements(WebDriverBy $by)

No description

Parameters

WebDriverBy $by

Return Value

WebDriverElement[]

A list of all WebDriverElements, or an empty array if nothing matches

Exceptions

WebDriverException

WebDriverElement findElement(WebDriverBy $by)

No description

Parameters

WebDriverBy $by

Return Value

WebDriverElement

NoSuchElementException is thrown in HttpCommandExecutor if no element is found.

Exceptions

WebDriverException

mixed executeScript(string $script, array $arguments = [])

No description

Parameters

string $script

The script to inject.

array $arguments

The arguments of the script.

Return Value

mixed

The return value of the script.

Exceptions

WebDriverException

mixed executeAsyncScript(string $script, array $arguments = [])

No description

Parameters

string $script

The script to inject.

array $arguments

The arguments of the script.

Return Value

mixed

The value passed by the script to the callback.

Exceptions

WebDriverException

WebDriver close()

No description

Return Value

WebDriver

The current instance.

Exceptions

WebDriverException

string getCurrentURL()

No description

Return Value

string

The current URL.

Exceptions

WebDriverException

string getPageSource()

No description

Return Value

string

The current page source.

Exceptions

WebDriverException

string getTitle()

No description

Return Value

string

The title of the current page.

Exceptions

WebDriverException

string getWindowHandle()

No description

Return Value

string

The current window handle.

Exceptions

WebDriverException

array getWindowHandles()

No description

Return Value

array

An array of string containing all available window handles.

Exceptions

WebDriverException

quit()

No description

Exceptions

WebDriverException

string takeScreenshot(string $save_as = null)

No description

Parameters

string $save_as

The path of the screenshot to be saved.

Return Value

string

The screenshot in PNG format.

Exceptions

WebDriverException

WebDriverWait wait(int $timeout_in_second = 30, int $interval_in_millisecond = 250)

No description

Parameters

int $timeout_in_second
int $interval_in_millisecond

Return Value

WebDriverWait

Exceptions

WebDriverException

WebDriverOptions manage()

No description

Return Value

WebDriverOptions

Exceptions

WebDriverException

WebDriverTargetLocator switchTo()

No description

Return Value

WebDriverTargetLocator

Exceptions

WebDriverException

WebDriverTouchScreen getTouch()

No description

Return Value

WebDriverTouchScreen

Exceptions

WebDriverException

mixed execute(string $name, array $params)

No description

Parameters

string $name
array $params

Return Value

mixed

protected EventFiringWebElement newElement(WebDriverElement $element)

No description

Parameters

WebDriverElement $element

Return Value

EventFiringWebElement

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

No description

Parameters

mixed $method
mixed ...$arguments

protected dispatchOnException(WebDriverException $exception)

No description

Parameters

WebDriverException $exception