\WebDriverOptions

Managing stuff you would do in a browser.

Summary

Methods
Properties
Constants
__construct()
addCookie()
deleteAllCookies()
deleteCookieNamed()
getCookieNamed()
getCookies()
timeouts()
window()
getLog()
getAvailableLogTypes()
No public properties found
No constants found
No protected methods found
$executor
N/A
validate()
No private properties found
N/A

Properties

$executor

$executor : 

Type

Methods

__construct()

__construct(\ExecuteMethod  $executor) 

Parameters

\ExecuteMethod $executor

addCookie()

addCookie(array  $cookie) : \WebDriverOptions

Add a specific cookie.

Here are the valid attributes of a cookie array. 'name' : string The name of the cookie; may not be null or an empty

               string.

'value' : string The cookie value; may not be null. 'path' : string The path the cookie is visible to. If left blank or set

              to null, will be set to "/".

'domain': string The domain the cookie is visible to. It should be null or

              the same as the domain of the current URL.

'secure': bool Whether this cookie requires a secure connection(https?).

              It should be null or equal to the security of the current
              URL.

'expiry': int The cookie's expiration date; may be null.

Parameters

array $cookie

An array with key as the attributes mentioned above.

Returns

\WebDriverOptions —

The current instance.

deleteAllCookies()

deleteAllCookies() : \WebDriverOptions

Delete all the cookies that are currently visible.

Returns

\WebDriverOptions —

The current instance.

deleteCookieNamed()

deleteCookieNamed(  $name) : \WebDriverOptions

Delete the cookie with the give name.

Parameters

$name

Returns

\WebDriverOptions —

The current instance.

getCookieNamed()

getCookieNamed(  $name) : array

Get the cookie with a given name.

Parameters

$name

Returns

array —

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

          presented.

getCookies()

getCookies() : array

Get all the cookies for the current domain.

Returns

array —

The array of cookies presented.

timeouts()

timeouts() : \WebDriverTimeouts

Return the interface for managing driver timeouts.

Returns

\WebDriverTimeouts

window()

window() : \WebDriverWindow

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

Returns

\WebDriverWindow

getLog()

getLog(  $log_type) : array

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

Parameters

$log_type

Returns

array —

The list of log entries.

getAvailableLogTypes()

getAvailableLogTypes() : array

Get available log types.

Returns

array —

The list of available log types.

validate()

validate(array  $cookie) 

Parameters

array $cookie