class WebDriverOptions (View source)

Managing stuff you would do in a browser.

Properties

protected ExecuteMethod $executor

Methods

__construct(ExecuteMethod $executor)

No description

addCookie(Cookie|array $cookie)

Add a specific cookie.

deleteAllCookies()

Delete all the cookies that are currently visible.

deleteCookieNamed(string $name)

Delete the cookie with the give name.

getCookieNamed(string $name)

Get the cookie with a given name.

Cookie[]
getCookies()

Get all the cookies for the current domain.

timeouts()

Return the interface for managing driver timeouts.

window()

An abstraction allowing the driver to manipulate the browser's window

array
getLog(string $log_type)

Get the log for a given log type. Log buffer is reset after each request.

array
getAvailableLogTypes()

Get available log types.

Details

__construct(ExecuteMethod $executor)

No description

Parameters

ExecuteMethod $executor

WebDriverOptions addCookie(Cookie|array $cookie)

Add a specific cookie.

Parameters

Cookie|array $cookie

Cookie object. May be also created from array for compatibility reasons.

Return Value

WebDriverOptions

The current instance.

See also

Cookie for description of possible cookie properties

WebDriverOptions deleteAllCookies()

Delete all the cookies that are currently visible.

Return Value

WebDriverOptions

The current instance.

WebDriverOptions deleteCookieNamed(string $name)

Delete the cookie with the give name.

Parameters

string $name

Return Value

WebDriverOptions

The current instance.

Cookie getCookieNamed(string $name)

Get the cookie with a given name.

Parameters

string $name

Return Value

Cookie

The cookie, or null if no cookie with the given name is presented.

Cookie[] getCookies()

Get all the cookies for the current domain.

Return Value

Cookie[]

The array of cookies presented.

WebDriverTimeouts timeouts()

Return the interface for managing driver timeouts.

Return Value

WebDriverTimeouts

WebDriverWindow window()

An abstraction allowing the driver to manipulate the browser's window

Return Value

WebDriverWindow

See also

WebDriverWindow

array getLog(string $log_type)

Get the log for a given log type. Log buffer is reset after each request.

Parameters

string $log_type

The log type.

Return Value

array

The list of log entries.

See also

https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#log-type

array getAvailableLogTypes()

Get available log types.

Return Value

array

The list of available log types.

See also

https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#log-type